Changeset 3346

Show
Ignore:
Timestamp:
02/01/10 12:04:14 (5 weeks ago)
Author:
Azaezel
Message:

adds applyImpulse(direction/amplitude,global position) for use with non-centered impulses (hit in the shoulder, a wheel applying it's own forward vector to a parent vehicle when under power vs just rolling, ect)

Files:
1 modified

Legend:

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

    r3340 r3346  
    147147    virtual void applyTorque(const Math::Vector3& _torque) = 0; 
    148148    virtual void applyForce(const Math::Vector3& _force) = 0; 
    149  
     149    virtual void applyImpulse(const Math::Vector3& _force, const Math::Vector3& _worldPos) = 0; 
    150150    //http://en.wikipedia.org/wiki/Damping 
    151151    virtual const Math::Vector3 getAngularDamping() const = 0;