Changeset 3340

Show
Ignore:
Timestamp:
01/31/10 13:03:18 (6 weeks 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')

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Engine/branches/0185_GEN_PHYSICS_REFACTOR_2/Physics/I_PhysicsActor.hpp

    r3118 r3340  
    148148    virtual void applyForce(const Math::Vector3& _force) = 0; 
    149149 
     150    //http://en.wikipedia.org/wiki/Damping 
     151    virtual const Math::Vector3 getAngularDamping() const = 0; 
     152    virtual void setAngularDamping(const Math::Vector3& _damping) = 0; 
     153    virtual const Math::Real getLinearDamping() const = 0; 
     154    virtual void setLinearDamping(float _damping) = 0; 
     155 
     156    //sets the minimum motion threshold at which an engine stops updating movement or even checking for it 
     157    virtual void setSleepingThresholds(float _minLinearMotion, float _minAngularMotion) = 0; 
     158    //force the physics engine to once more pay attention to a given object or force it to ignore it 
     159    virtual void setActivationState(unsigned _state) = 0; 
     160 
    150161    /// @todo Use I_PhysicsGroup& instead of int. 
    151162        virtual void setCollisionGroup(const int _group) = 0;