Page 1 of 1

Bepu v1 stationary space

Posted: Fri Mar 20, 2020 4:08 pm
by kakebuke
Hello!

I have been trying to know how to know when the physics simulation is stationary after a collision happened, meaning when all positions and rotations, etc, are stable. So far, I haven't found a way to achieve that.

Any tips on this regard? Where can I start looking? Is this not possible with bepu?

Thanks a lot in advance.

Re: Bepu v1 stationary space

Posted: Fri Mar 20, 2020 10:46 pm
by Norbo
Objects go inactive after having linear/angular velocity below a threshold for a while. In v1, you could check the entity.ActivityInformation.IsActive property.

If for some reason that's not workable, you can also directly examine the entity.LinearVelocity and entity.AngularVelocity.

Re: Bepu v1 stationary space

Posted: Wed Apr 15, 2020 5:05 pm
by kakebuke
Thanks a lot!

Just for the record, the ActivityInformation.isActive wasn't working and we switched to examining the velocities solution.