Page 1 of 1

Objects to ignore Objects

Posted: Sun Apr 17, 2011 2:39 pm
by Ben
Hi, I've been using BEPU physics in my game and I have come across a problem. Is it possible to have physics objects ignore other physics objects? For example if you had say a shield in a game. You'd want some players and objects to be able to move through it and ignore its existence where as others you wouldn't. In my case I have a fairly large object that has a capsule wrapped round it. However I do not want my player and some other objects to collide against it.

Thanks,
Ben

Re: Objects to ignore Objects

Posted: Sun Apr 17, 2011 6:05 pm
by Norbo
Is it possible to have physics objects ignore other physics objects?
Yup, using Collision Rules: http://bepuphysics.codeplex.com/wikipag ... umentation

To see a simple example in action, download the BEPUphysicsDemos project and go to the CollisionFilteringDemo.

Re: Objects to ignore Objects

Posted: Sun Apr 17, 2011 6:45 pm
by Ben
Great thanks.