diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-02-13 09:28:35 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-02-13 09:28:35 +0300 |
commit | f55e45f855250a5693455fe0f7e13fe0f35c7814 (patch) | |
tree | 3b98f46c92068f3dd6c1acb45887b0b16175878c /source/gameengine/Physics/common/PHY_IVehicle.h | |
parent | e4790aef46f7ca0b4ab01c34f043be9e7b1fa7f1 (diff) |
more vehicle preparation and some bullet collision detection bugfixes (related to collision margin)
Diffstat (limited to 'source/gameengine/Physics/common/PHY_IVehicle.h')
-rw-r--r-- | source/gameengine/Physics/common/PHY_IVehicle.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source/gameengine/Physics/common/PHY_IVehicle.h b/source/gameengine/Physics/common/PHY_IVehicle.h index 655c1154bb9..0e6fe3379a2 100644 --- a/source/gameengine/Physics/common/PHY_IVehicle.h +++ b/source/gameengine/Physics/common/PHY_IVehicle.h @@ -13,9 +13,10 @@ public: virtual ~PHY_IVehicle(); virtual void AddWheel( - PHY_Vector3 connectionPoint, - PHY_Vector3 downDirection, - PHY_Vector3 axleDirection, + PHY_IMotionState* motionState, + PHY__Vector3 connectionPoint, + PHY__Vector3 downDirection, + PHY__Vector3 axleDirection, float suspensionRestLength, float wheelRadius, bool hasSteering @@ -24,13 +25,20 @@ public: virtual int GetNumWheels() const = 0; - virtual const PHY_IMotionState* GetWheelMotionState(int wheelIndex) const = 0; + virtual void GetWheelPosition(int wheelIndex,float& posX,float& posY,float& posZ) const = 0; + virtual void GetWheelOrientationQuaternion(int wheelIndex,float& quatX,float& quatY,float& quatZ,float& quatW) const = 0; + virtual float GetWheelRotation(int wheelIndex) const = 0; virtual int GetUserConstraintId() const =0; virtual int GetUserConstraintType() const =0; //some basic steering/braking/tuning/balancing (bikes) + virtual void SetSteeringValue(float steering,int wheelIndex) = 0; + + virtual void ApplyEngineForce(float force,int wheelIndex) = 0; + + virtual void ApplyBraking(float braking,int wheelIndex) = 0; }; |