|
Blender
V2.59
|
#include <KX_TrackToActuator.h>

Public Member Functions | |
| KX_TrackToActuator (SCA_IObject *gameobj, SCA_IObject *ob, int time, bool threedee, int trackflag, int upflag) | |
| virtual | ~KX_TrackToActuator () |
| virtual CValue * | GetReplica () |
| virtual void | ProcessReplica () |
| virtual bool | UnlinkObject (SCA_IObject *clientobj) |
| virtual void | Relink (CTR_Map< CTR_HashedPtr, void * > *obj_map) |
| virtual bool | Update (double curtime, bool frame) |
Definition at line 42 of file KX_TrackToActuator.h.
| KX_TrackToActuator::KX_TrackToActuator | ( | SCA_IObject * | gameobj, |
| SCA_IObject * | ob, | ||
| int | time, | ||
| bool | threedee, | ||
| int | trackflag, | ||
| int | upflag | ||
| ) |
Definition at line 56 of file KX_TrackToActuator.cpp.
References SG_Spatial::GetLocalOrientation(), KX_GameObject::GetParent(), KX_GameObject::GetSGNode(), SCA_IObject::RegisterActuator(), and CValue::Release().
Referenced by GetReplica().
| KX_TrackToActuator::~KX_TrackToActuator | ( | ) | [virtual] |
Definition at line 187 of file KX_TrackToActuator.cpp.
References SCA_IObject::UnregisterActuator().
| virtual CValue* KX_TrackToActuator::GetReplica | ( | void | ) | [inline, virtual] |
Implements CValue.
Definition at line 62 of file KX_TrackToActuator.h.
References KX_TrackToActuator(), and ProcessReplica().
| void KX_TrackToActuator::ProcessReplica | ( | ) | [virtual] |
Makes sure any internal data owned by this class is deep copied.
Reimplemented from SCA_IActuator.
Definition at line 195 of file KX_TrackToActuator.cpp.
References SCA_IObject::RegisterActuator().
Referenced by GetReplica().
| void KX_TrackToActuator::Relink | ( | CTR_Map< CTR_HashedPtr, void * > * | obj_map | ) | [virtual] |
Reimplemented from SCA_ILogicBrick.
Definition at line 222 of file KX_TrackToActuator.cpp.
References SCA_IObject::RegisterActuator(), and SCA_IObject::UnregisterActuator().
| bool KX_TrackToActuator::UnlinkObject | ( | SCA_IObject * | clientobj | ) | [virtual] |
UnlinkObject(...) Certain actuator use gameobject pointers (like TractTo actuator) This function can be called when an object is removed to make sure that the actuator will not use it anymore.
Reimplemented from SCA_IActuator.
Definition at line 206 of file KX_TrackToActuator.cpp.
References NULL.
| bool KX_TrackToActuator::Update | ( | double | curtime, |
| bool | frame | ||
| ) | [virtual] |
Update(...) Update the actuator based upon the events received since the last call to Update, the current time and deltatime the time elapsed in this frame ? It is the responsibility of concrete Actuators to clear their event's. This is usually done in the Update() method via a call to RemoveAllEvents()
Reimplemented from SCA_IActuator.
Definition at line 242 of file KX_TrackToActuator.cpp.
References MT_Vector3::cross(), MT_Vector3::dot(), SG_Spatial::GetLocalPosition(), SCA_ILogicBrick::GetParent(), KX_GameObject::GetSGNode(), MT_Matrix3x3::inverse(), SCA_IActuator::IsNegativeEvent(), left, MT_Vector3::length2(), matrix3x3_interpol(), KX_GameObject::NodeGetWorldOrientation(), KX_GameObject::NodeGetWorldPosition(), KX_GameObject::NodeSetLocalOrientation(), KX_GameObject::NodeSetLocalPosition(), MT_Vector3::normalize(), SCA_IActuator::RemoveAllEvents(), MT_Vector3::safe_normalized(), MT_Tuple3::setValue(), and MT_Matrix3x3::setValue().