RayShape2D

Inherits: Shape2D < Resource < Reference < Object

Category: Core

Brief Description

Ray shape for 2D collisions.

Properties

floatlength
boolslips_on_slope

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.

Property Descriptions

Setterset_length(value)
Getterget_length()

The ray’s length.


  • bool slips_on_slope
Setterset_slips_on_slope(value)
Getterget_slips_on_slope()

If true, allow the shape to return the correct normal. Default value: false.