RayShape

Inherits: Shape < Resource < Reference < Object

Ray shape for 3D collisions.

Description

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

floatlength1.0
boolslips_on_slopefalse

Property Descriptions

Default1.0
Setterset_length(value)
Getterget_length()

The ray’s length.


  • bool slips_on_slope
Defaultfalse
Setterset_slips_on_slope(value)
Getterget_slips_on_slope()

If true, allow the shape to return the correct normal.