Class TCastlePlaneCollider
Unit
Declaration
type TCastlePlaneCollider = class(TCastleCollider)
Description
Push everything to be above the given static plane, like a floor.
Half of 3D space (below the plane) is effectively collidable, and everything is pushed to be above the floor. Note: This is more than just "collide as an infinite plane", because even if you place a body completely below the plane, it will be pushed up.
Add this collider to TCastleTransform behaviors, along with a TCastleRigidBody, to make the given TCastleTransform be affected by physics and collide with other physics bodies.
This collider supports only static rigid bodies. The associated TCastleRigidBody instance (with the same TCastleTransform parent) will behave as if TCastleRigidBody.Dynamic and TCastleRigidBody.Animated are False.
Source: transform/castletransform_physics.inc (line 483).
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleBehavior
- TCastleCollider
- TCastlePlaneCollider
Generated by PasDoc 0.17.0.snapshot.