Show
Ignore:
Timestamp:
02/01/10 12:08:08 (6 months ago)
Author:
Azaezel
Message:

bullet userdata and applyForce conversions, zone simulation stepping, adds applyImpulse to both plugins. also: setAdvancedCollisionPrediction made irrelevant for this plugin.

NOTE: major difference in applyImpulse implementations: for newton, the position is in world-space. for bullet, it's in object-space... need to resolve that

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZBullet/src/PhysicsActor.hpp

    r3339 r3347  
    116116    static void TransformCallback(const btRigidBody* _body, const Zen::Math::Real* _matrix); 
    117117    void applyForce(const Math::Vector3& _force); 
     118    void applyImpulse(const Math::Vector3& _force, const Math::Vector3& _worldPos); 
     119 
    118120    void applyTorque(const Math::Vector3& _torque); 
    119121    /// @}