How to find the acceleration of an entity

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
yanbo2u
Posts: 21
Joined: Sun Oct 04, 2015 4:41 pm

How to find the acceleration of an entity

Post by yanbo2u »

Say i have an entity that is affected by many other entities and constrains. I need to find the overall acceleration of all impulses (in different directions) that are applied on this object, something to imitate the acceleration sensor.

by the way, I also need to find the impulses from revolute motors.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: How to find the acceleration of an entity

Post by Norbo »

The engine doesn't track acceleration, but it can be derived from the change in velocity from one time step to the next (e.g. acceleration = (currentVelocity - previousVelocity) / dt).

The impulse applied in the previous frame by a revolute motor can be found in its TotalImpulse property. That value is in constraint space, so it's just a scalar representing the angular impulse around the constraint axis. If you want the world space angular impulse, multiply by the jacobian (GetAngularJacobianA/B).
Post Reply