Work in progress
Godot documentation is being updated to reflect the latest changes in version
4.0
. Some documentation pages may
still state outdated information. This banner will tell you if you're reading one of such pages.
The contents of this page are up to date. If you can still find outdated information, please open an issue.
WorldBoundaryShape3D¶
Inherits: Shape3D < Resource < RefCounted < Object
World boundary (infinite plane) shape resource for 3D physics.
Description¶
3D world boundary shape to be added as a direct child of a PhysicsBody3D or Area3D using a CollisionShape3D node. WorldBoundaryShape3D works like an infinite plane and will not allow any physics body to go to the negative side. Note that the Plane's normal matters; anything "below" the plane will collide with it. If the WorldBoundaryShape3D is used in a PhysicsBody3D, it will cause colliding objects placed "below" it to teleport "above" the plane.
Performance: Being a primitive collision shape, WorldBoundaryShape3D is fast to check collisions against.
Properties¶
|
Property Descriptions¶
Plane plane = Plane(0, 1, 0, 0)
The Plane used by the WorldBoundaryShape3D for collision.