RayShape2D
Inherits: Shape2D < Resource < Reference < Object
Category: Core
Brief Description
Ray 2D shape resource for physics.
Member Functions
float | 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.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/2.1/classes/class_rayshape2d.html