RayShape2D

Inherits: Shape2D < Resource < Reference < Object

Ray shape for 2D collisions.

Description

Ray shape for 2D collisions. 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

float

length

20.0

bool

slips_on_slope

false


Property Descriptions

float length = 20.0

  • void set_length ( float value )

  • float get_length ( )

The ray's length.


bool slips_on_slope = false

  • void set_slips_on_slope ( bool value )

  • bool get_slips_on_slope ( )

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