Page 1 of 1

Make a Object not collidable temporarily

Posted: Tue Mar 31, 2020 3:50 am
by starlaoxmelgs
I add a BEPUphysics.Entities.Prefabs.Box to space
So it can collide with other objects.
But sometimes I want to make it not-collidable, after 3 seconds, I need it collidable again.
What's the proper way to do this?
Add to space, remove from space works, but just weird.

Re: Make a Object not collidable temporarily

Posted: Tue Mar 31, 2020 8:08 pm
by Norbo
You could use collision rules, but having an object in the Space doing nothing comes with a slight performance penalty that simply removing it avoids.

Re: Make a Object not collidable temporarily

Posted: Wed Apr 01, 2020 1:37 am
by starlaoxmelgs
Thanks :D