Struct RayShape2D

Ray shape for 2D collisions.

struct RayShape2D ;

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