RayShape2D

Inherits: Shape2D < Resource < Reference < Object

Category: Core

Brief Description

Ray shape for 2D collisions.

Member Variables

  • float length - The ray’s length.

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.