Ignore collisions rules and right way to use them
Posted: Wed May 06, 2015 12:05 pm
Hi, Norbo!
I have a rockets that player will shot from rocket launcher, but I don't those rockets collide with some stuff. So, I found one way on forum to do it :
Question is : should I remove this rule after rocket is gone? I will have many players and many rockets so it will be many rules where. Trick is : each rocket will have different items to ignore collisions with, not all rockets don't collide with same objects. So, I will need to create a different rule for each rocket.
Thanks.
I have a rockets that player will shot from rocket launcher, but I don't those rockets collide with some stuff. So, I found one way on forum to do it :
Code: Select all
CollisionRules.AddRule(somestuff, rocket, CollisionRules.NoBroadPhase);
Thanks.