- Home /
Question by
BuzzKillingtonIII · Feb 12, 2014 at 02:42 PM ·
c#rigidbody2d-physics
Rigidbody2D.mass editable during runtime?
I have read in several places that the inability to change the mass variable of rigidbody2D's via script was a bug. This bug has now apparently been fixed.
However, on start()
I can use the code below to set the mass. If I try it at any other time, for example when I instantiate an object, nothing happens (Mass stays at the starting value).
rigidbody2D.mass = 5.0f;
Am I doing something simple wrong or has the bug not been completely fixed?
Thanks in advance.
Comment
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Preventing Rotated Jumping (C#) 1 Answer
Multiple Cars not working 1 Answer
how to keep a "ship" over a platform or rigidbody? 0 Answers
how get bow to add more force over time 0 Answers