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/ZNewton/src/PhysicsActor.cpp

    r3339 r3347  
    618618//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
    619619void 
     620PhysicsActor::applyImpulse(const Math::Vector3& _force, const Math::Vector3& _worldPos) 
     621{ 
     622    //todo: bullet needs it's force fed to it in local space coords 
     623     NewtonAddBodyImpulse(m_pActor, _force.m_array, _worldPos.m_array); 
     624} 
     625 
     626//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     627void 
    620628PhysicsActor::applyTorque(const Math::Vector3& _torque) 
    621629{