46234f90ce
All platforms/build systems: either upgrade to use extern/bullet2, or disable the game engine until the build is fixed.
71 lines
2.1 KiB
C++
71 lines
2.1 KiB
C++
#ifndef KX_BULLET2PHYSICS_CONTROLLER
|
|
#define KX_BULLET2PHYSICS_CONTROLLER
|
|
|
|
|
|
#include "KX_IPhysicsController.h"
|
|
#include "CcdPhysicsController.h"
|
|
|
|
class KX_BulletPhysicsController : public KX_IPhysicsController ,public CcdPhysicsController
|
|
{
|
|
|
|
public:
|
|
|
|
KX_BulletPhysicsController (const CcdConstructionInfo& ci, bool dyna);
|
|
virtual ~KX_BulletPhysicsController ();
|
|
|
|
///////////////////////////////////
|
|
// KX_IPhysicsController interface
|
|
////////////////////////////////////
|
|
|
|
virtual void applyImpulse(const MT_Point3& attach, const MT_Vector3& impulse);
|
|
virtual void SetObject (SG_IObject* object);
|
|
virtual void setMargin (float collisionMargin);
|
|
virtual void RelativeTranslate(const MT_Vector3& dloc,bool local);
|
|
virtual void RelativeRotate(const MT_Matrix3x3& drot,bool local);
|
|
virtual void ApplyTorque(const MT_Vector3& torque,bool local);
|
|
virtual void ApplyForce(const MT_Vector3& force,bool local);
|
|
virtual MT_Vector3 GetLinearVelocity();
|
|
virtual MT_Vector3 GetVelocity(const MT_Point3& pos);
|
|
virtual void SetAngularVelocity(const MT_Vector3& ang_vel,bool local);
|
|
virtual void SetLinearVelocity(const MT_Vector3& lin_vel,bool local);
|
|
virtual void getOrientation(MT_Quaternion& orn);
|
|
virtual void setOrientation(const MT_Quaternion& orn);
|
|
virtual void setPosition(const MT_Point3& pos);
|
|
virtual void setScaling(const MT_Vector3& scaling);
|
|
virtual MT_Scalar GetMass();
|
|
virtual MT_Vector3 getReactionForce();
|
|
virtual void setRigidBody(bool rigid);
|
|
|
|
virtual void resolveCombinedVelocities(float linvelX,float linvelY,float linvelZ,float angVelX,float angVelY,float angVelZ);
|
|
|
|
virtual void SuspendDynamics();
|
|
virtual void RestoreDynamics();
|
|
|
|
virtual SG_Controller* GetReplica(class SG_Node* destnode);
|
|
|
|
void SetDyna(bool isDynamic) {
|
|
m_bDyna = isDynamic;
|
|
}
|
|
|
|
|
|
virtual void SetSumoTransform(bool nondynaonly);
|
|
// todo: remove next line !
|
|
virtual void SetSimulatedTime(double time);
|
|
|
|
// call from scene graph to update
|
|
virtual bool Update(double time);
|
|
void* GetUserData() { return m_userdata;}
|
|
|
|
void
|
|
SetOption(
|
|
int option,
|
|
int value
|
|
){
|
|
// intentionally empty
|
|
};
|
|
|
|
};
|
|
|
|
#endif //KX_BULLET2PHYSICS_CONTROLLER
|
|
|