class
SphereCollider
Inherits:
Collider
A collider with sphere geometry.
Public
Constructors
SphereCollider
SphereCollider(const HSceneObject &parent, float radius = 1.F)
Methods
SetRadius
void SetRadius(float radius)
Determines the radius of the sphere geometry.
GetRadius
float GetRadius() const
SetCenter
void SetCenter(const Vector3 ¢er)
Determines position of the sphere shape, relative to the component's scene object.
GetCenter
Vector3 GetCenter() const
staticGetRttiStatic
static RTTIType *GetRttiStatic()
Protected
Constructors
SphereCollider
SphereCollider()
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
mRadius
float mRadius