Struct RayShape

Ray shape for 3D collisions.

struct RayShape ;

Ray shape for 3D collisions, which can be set into a PhysicsBody or Area. A ray is not really a collision body; instead, it tries to separate itself from whatever is touching its far endpoint. It's often useful for characters.

Properties

NameTypeDescription
length[get, set] doubleThe ray's length.
slipsOnSlope[get, set] boolIf true, allow the shape to return the correct normal.

Methods

NameDescription
getLength
getSlipsOnSlope
setLength
setSlipsOnSlope