class BoxCollider

Inherits: Collider

Collider with box geometry.

Public

Constructors

BoxCollider

BoxCollider(const HSceneObject &parent, const Vector3 &extents = Vector3(0.5F, 0.5F, 0.5F))

Methods

SetExtents

void SetExtents(const Vector3 &extents)

Determines the extents (half size) of the geometry of the box.

GetExtents

Vector3 GetExtents() const

SetCenter

void SetCenter(const Vector3 &center)

Determines the position of the box shape, relative to the component's scene object.

GetCenter

Vector3 GetCenter() const

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

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

Protected

Constructors

BoxCollider

BoxCollider()

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

mExtents

Vector3 mExtents