class
PlaneCollider
Inherits:
Collider
A collider with plane geometry.
Plane colliders cannot be a part of non-kinematic rigidbodies.
Public
Constructors
PlaneCollider
PlaneCollider(const HSceneObject &parent)
Methods
SetNormal
void SetNormal(const Vector3 &normal)
Normal vector that determines the local orientation of the plane.
GetNormal
Vector3 GetNormal() const
SetDistance
void SetDistance(float distance)
Determines the distance of the plane from the local origin, along its normal vector.
GetDistance
float GetDistance() const
staticGetRttiStatic
static RTTIType *GetRttiStatic()
Protected
Constructors
PlaneCollider
PlaneCollider()
Methods
OnCreated
void OnCreated() override
Called once when the component has been created.
Called regardless of the state the component is in.
IsValidParent
bool IsValidParent(const HRigidbody &parent) const override
Checks is the provided rigidbody a valid parent for this collider.
Fields
mShapeLocalPosition
Vector3 mShapeLocalPosition
mShapeLocalRotation
Quaternion mShapeLocalRotation
mNormal
Vector3 mNormal
mDistance
float mDistance