- Home /
Question by
samvallely · Feb 24, 2014 at 06:43 PM ·
positionrigidbody2daddforce
C# can i set rigidbody2d to gravitate to point x but not y
i am making a juggling game and need the ball to alway gravitate towards the other hand (so a set point on the x axis) but i want the movement of the y axes to remain as it is with AddForce(or equivalent). i don't know the proper syntax in c# for adding a transformer position to this or if its even possible to do it this way:
rigidbody2D.AddForce (new Vector2 (ForceX, ForceY));
Comment