class
CapsuleCollider
Inherits:
Collider
Collider with a capsule geometry.
Public
Constructors
CapsuleCollider
CapsuleCollider(const HSceneObject &parent, float radius = 1.F, float halfHeight = 0.5F)
Methods
SetNormal
void SetNormal(const Vector3 &normal)
Normal vector that determines how is the capsule oriented.
GetNormal
Vector3 GetNormal() const
SetCenter
void SetCenter(const Vector3 ¢er)
Determines the position of the capsule shape, relative to the component's scene object.
GetCenter
Vector3 GetCenter() const
SetHalfHeight
void SetHalfHeight(float halfHeight)
Determines the half height of the capsule, from the origin to one of the hemispherical centers, along the normal vector.
GetHalfHeight
float GetHalfHeight() const
SetRadius
void SetRadius(float radius)
Determines the radius of the capsule.
GetRadius
float GetRadius() const
staticGetRttiStatic
static RTTIType *GetRttiStatic()
Protected
Constructors
CapsuleCollider
CapsuleCollider()
Methods
OnCreated
void OnCreated() override
Called once when the component has been created.
Called regardless of the state the component is in.
Fields
mShapeLocalPosition
Vector3 mShapeLocalPosition
mShapeLocalRotation
Quaternion mShapeLocalRotation
mNormal
Vector3 mNormal
mRadius
float mRadius
mHalfHeight
float mHalfHeight