blob: 8bcd90b578a4f5d76d595e01116213e6d1f01732 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef CONSTANTFORCE_H
#define CONSTANTFORCE_H
#include "Runtime/GameCode/Behaviour.h"
#include "Runtime/Math/Vector3.h"
class ConstantForce : public Behaviour
{
public:
REGISTER_DERIVED_CLASS (ConstantForce, Behaviour)
DECLARE_OBJECT_SERIALIZE (ConstantForce)
ConstantForce (MemLabelId label, ObjectCreationMode mode);
virtual void Reset ();
virtual void FixedUpdate ();
virtual void AddToManager ();
virtual void RemoveFromManager ();
Vector3f m_Force; ///< Force applied globally
Vector3f m_RelativeForce; ///< Force applied locally
Vector3f m_Torque; ///< Torque applied globally
Vector3f m_RelativeTorque; ///< Torque applied locally
BehaviourListNode m_FixedUpdateNode;
};
#endif
|