Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
WorldBoundaryShape2D¶
Inherits: Shape2D < Resource < RefCounted < Object
A 2D world boundary (half-plane) shape used for physics collision.
Description¶
A 2D world boundary shape, intended for use in physics. WorldBoundaryShape2D works like an infinite straight line that forces all physics bodies to stay above it. The line's normal determines which direction is considered as "above" and in the editor, the smaller line over it represents this direction. It can for example be used for endless flat floors.
Properties¶
|
||
|
Property Descriptions¶
float distance = 0.0
The line's distance from the origin.
Vector2 normal = Vector2(0, -1)
The line's normal. Defaults to Vector2.UP
.