LineShape2D

Inherits: Shape2D < Resource < Reference < Object

Line shape for 2D collisions.

Description

Line shape for 2D collisions. It works like a 2D plane and will not allow any physics body to go to the negative side. Not recommended for rigid bodies, and usually not recommended for static bodies either because it forces checks against it on every frame.

Properties

floatd0.0
Vector2normalVector2( 0, -1 )

Property Descriptions

Default0.0
Setterset_d(value)
Getterget_d()

The line’s distance from the origin.


DefaultVector2( 0, -1 )
Setterset_normal(value)
Getterget_normal()

The line’s normal.