[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:
3. Add script to the second GO:
Rigidbody2D bug?
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):
- {
- Rigidbody2D body = GetComponent<Rigidbody2D>();
- }
Code (CSharp):
- {
- Rigidbody2D body = GetComponent<Rigidbody2D>();