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
Name | Type | Description |
---|---|---|
length [get, set]
|
double | The ray's length. |
slipsOnSlope [get, set]
|
bool | If true , allow the shape to return the correct normal.
|
Methods
Name | Description |
---|---|
getLength
|
|
getSlipsOnSlope
|
|
setLength
|
|
setSlipsOnSlope
|