Objects to ignore Objects

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Ben
Posts: 10
Joined: Sun Apr 17, 2011 2:34 pm

Objects to ignore Objects

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

Re: Objects to ignore Objects

Post 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.
Ben
Posts: 10
Joined: Sun Apr 17, 2011 2:34 pm

Re: Objects to ignore Objects

Post by Ben »

Great thanks.
Post Reply