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

Determines position of the sphere 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

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