|
The problem i'm having this time is that when I hit a group of objects and then reset their positions I can't Zero out their velocity so its like they are constantly being hit. How can I zero out their velocity? I have a script that was provided by -Duck but it needs something to fix that last issue. Heres what he showed me:
(comments are locked)
|
|
You can do that by setting the
And just to make absloutely sure that it won't move a centimeter you might want to call
But according to Unity:
Remember to zero out the angularVelocity too!
Mar 11 '10 at 10:18 AM
duck ♦♦
The quote is right. A physical object would usually not stop dead suddenly, but that is all that is meant with that quote. Just to make absolutely sure you're not gonna move one inch further, you might want to rigidbody.Sleep (); right after zeroing the velocity. Ah and no reason to do transform.rigidbody. MonoBehaviours also have a rigidbody accessor - edited your answer to reflect it.
Mar 11 '10 at 02:11 PM
AngryAnt ♦♦
(comments are locked)
|
