0.45.0
![]() |
#include <iSphereComponent.h>
Inherits igor::iEntityComponent.
Public Member Functions | |
iSphereComponent ()=default | |
iSphereComponent (float64 radius, const iaVector3d &offset=iaVector3d()) | |
float64 | getRadius () const |
void | setRadius (float64 radius) |
const iaVector3d & | getOffset () const |
void | setOffset (const iaVector3d &offset) |
std::vector< iaString > | getInfo () const override |
![]() | |
iEntityComponent () | |
virtual | ~iEntityComponent ()=default |
const iEntityComponentID & | getID () const |
iEntityComponentState | getState () const |
virtual std::vector< iaString > | getInfo () const |
IGOR_INLINE void | setDirty () |
uint16 | getVersion () const |
Static Public Member Functions | |
static iEntityComponent * | createInstance () |
static const iaString & | getTypeName () |
Additional Inherited Members | |
![]() | |
virtual bool | onLoad (iEntityPtr entity, bool &asyncLoad) |
virtual void | onActivate (iEntityPtr entity) |
virtual void | onDeactivate (iEntityPtr entity) |
virtual void | onUnLoad (iEntityPtr entity) |
virtual iEntityComponentPtr | getCopy ()=0 |
iEntityPtr | getEntity () const |
3D sphere collision component
|
default |
default ctor
|
inline |
ctor
|
static |
creates instance of this component type
|
overridevirtual |
Reimplemented from igor::iEntityComponent.
const iaVector3d & igor::iSphereComponent::getOffset | ( | ) | const |
float64 igor::iSphereComponent::getRadius | ( | ) | const |
|
static |
void igor::iSphereComponent::setOffset | ( | const iaVector3d & | offset | ) |
sets offset
offset | the offset to set |
void igor::iSphereComponent::setRadius | ( | float64 | radius | ) |
sets radius
radius | the radius to set |