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 &center)

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()

GetRtti

RTTIType *GetRtti() const

Returns an interface you can use to access class' Run Time Type Information.

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