Bepu v1 stationary space

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
kakebuke
Posts: 5
Joined: Fri Mar 20, 2020 4:05 pm

Bepu v1 stationary space

Post 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.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Bepu v1 stationary space

Post 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.
kakebuke
Posts: 5
Joined: Fri Mar 20, 2020 4:05 pm

Re: Bepu v1 stationary space

Post by kakebuke »

Thanks a lot!

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