Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Rigidbody2D bug?

$
0
0
[I use Unity 4.5.2f1]

0. Add two GOs to the new scene.
1. Add to both GOs RigidBody2D component and set Mass = 2, GravityScale = 0.
2. Add script to the first GO:
Code (CSharp):
  1.   void FixedUpdate()
  2.   {
  3.       Rigidbody2D body = GetComponent<Rigidbody2D>();
  4.       body.AddForce(new Vector2(0, -9.81f), ForceMode2D.Force);
  5.   }
3. Add script to the second GO:
Code (CSharp):
  1.   void FixedUpdate()
  2.   {
  3.       Rigidbody2D body = GetComponent<Rigidbody2D>();
  4.       body.mass = 2;...
Rigidbody2D bug?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>