#raycast

1 messages · Page 1 of 1 (latest)

worthy elbow
#

My characters crouches while holding ctrl, if there is object on my character, it keeps crouching even if i dont hold ctrl, i check objects on my character using raycast, but it only checks one point. How can i check objects on my characters in a circular raycast?

worthy elbow
#

Raycast checks objects like this

#

But i want it to check like that

spare sparrow
# worthy elbow

Casting a circle in 3d space is not possible, SphereCast is an option tho which results in capsule sweeping area (from the image id imagine you want cylinder shaped sweep test)

agile loom
#

^ That.
Or you can use a CheckBox.