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 ¢er)
Determines the position of the box shape, relative to the component's scene object.
GetCenter
Vector3 GetCenter() const
staticGetRttiStatic
static RTTIType *GetRttiStatic()
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