Question by
Sergey78 · Oct 15, 2017 at 12:03 PM ·
scripting problemphysics2d gamerigidbody2dphysics2d
How to change rigidbody type correctly? Angry Birds Game
Hello. I studied a training: https://unity3d.com/learn/tutorials/topics/physics/making-angry-birds-style-game-part-1?playlist=41639
In this training when the mouse is up then "rigidbody.isKinematic = true". But the video is old one and changing the rigidbody type by this way is incorrect. What is the correct way to implement this mechanic at the moment?
Comment
Best Answer
Answer by Sergey78 · Oct 15, 2017 at 08:39 PM
I found the solution - to use:
body2d.bodyType = RigidbodyType2D.Dynamic;
instead of
body2d.isKinematic = false;
It works fine. Maybe it was a correct solution.
Your answer
Follow this Question
Related Questions
Adding force to a rigidbody opposite to the direction of a rotating weapon 0 Answers
3D vs 2D build size 0 Answers
Arkanoid-like bounce troubles 1 Answer
Collision sticking? 1 Answer
stick-figure piercing 0 Answers