Show
Ignore:
Timestamp:
01/31/10 13:03:15 (6 months ago)
Author:
Azaezel
Message:

elevates the damping get/set pairs as well as setActivationState(bool) to the interface, and adds a setSleepingThresholds method for tracking when to shut down adding more motion (prevents whats commonly referred to as 'jitter')
also: stepSimulation for bullet, and a destroyPhysicsActor callback for zones in newton (already added for bullet a while back)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZNewton/src/PhysicsActor.cpp

    r3301 r3339  
    211211    m_activationState = 1; 
    212212} 
     213// http://newtondynamics.com/wiki/index.php5?title=NewtonBodySetFreezeTreshold 
     214//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     215void 
     216PhysicsActor::setSleepingThresholds(float _minLinearMotion, float _minAngularMotion) 
     217{ 
     218    //we'll stick with a default of 10 frames of motion since it's simpler to track distance/angle for most folks (that, and theres no equivalents in other engines I've found) -BJR 
     219    NewtonBodySetFreezeTreshold(m_pActor,_minLinearMotion,_minAngularMotion, 10); 
     220} 
    213221 
    214222//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~