- Home /
Question by
AnishsUsername · Oct 05, 2018 at 06:50 PM ·
rotationrigidbody2daddforcestatic
Rotation with rigidbody2d.AddForce() ?
Hey dear experts,
I want to spawn a little drop by a specific occasion. However the drop feels kinda static, so I want it to change its rotation matching to the force applied. Is there a way to achieve that? I provided a Video here:
Thanks for your help!
Comment
Answer by LCStark · Oct 05, 2018 at 06:58 PM
You could try the AddForceAtPosition
method: https://docs.unity3d.com/ScriptReference/Rigidbody2D.AddForceAtPosition.html.
What did you use as the position
parameter? If you use the rigidbody position, it will have no effect - or rather it will work the same way AddForce
does. You have to apply the force away from the center of the rigidbody.
What should I use as position? Is it everywhere possible? @LCStark