RayShape2D¶
Inherits: Shape2D < Resource < Reference < Object
Category: Core
Brief Description¶
Ray 2D shape resource for physics.
Member Functions¶
get_length ( ) const |
|
void |
set_length ( float length ) |
Description¶
Ray 2D shape resource for physics. 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.
Member Function Description¶
float get_length ( ) const
Return the length of the ray.
void set_length ( float length )
Set the length of the ray.