Search found 3 matches
- Thu Sep 22, 2016 7:25 am
- Forum: Questions and Help
- Topic: Push objects out of the way instead of sending them flying?
- Replies: 5
- Views: 4785
Re: Push objects out of the way instead of sending them flyi
The 'correct' solution works perfectly - it's fast enough for my purposes, and exactly the response I'm looking for! As soon as I switch to a MobileMesh object instead of one of the built in Boxes or Spheres, I run into a problem - the CollisionInformation.Shape contained in the mesh doesn't appear ...
- Mon Sep 19, 2016 6:42 am
- Forum: Questions and Help
- Topic: Push objects out of the way instead of sending them flying?
- Replies: 5
- Views: 4785
Re: Push objects out of the way instead of sending them flyi
Awesome, manually setting positions works well! Now for the special bonus round question... Currently I'm doing this: foreach (var p in e.CollisionInformation.Pairs) { foreach (var c in p.Contacts) { Vector3 force = c.Contact.Normal * c.Contact.PenetrationDepth; e.Position += force; } } I would like...
- Sat Sep 17, 2016 1:47 am
- Forum: Questions and Help
- Topic: Push objects out of the way instead of sending them flying?
- Replies: 5
- Views: 4785
Push objects out of the way instead of sending them flying?
When an object collides with another object, I want it to just get pushed out of the way instead of having the first object's velocity affect it. Eg, regardless if the object collides at a speed of .5 or 500, I want the second object to simply get pushed out of the way of the first and have no resid...