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 )

Member Variables

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.