Hi, How do I apply a force to a 2D rigid body in the up direction of the rigid body. i.e. to make a rocket thrust, the thrust needs to be applied in the tail to nose direction (up in local space). Do I use Vector2.up, use Fixed update, use delta time? Any help appreciated. Regards i
This seems to do it, do I not need delta time (and if so how), if I use fixedUpdate? void FixedUpdate() { if(isThrusting) { Rigidbody2D shipBody = ship.GetComponent<Rigidbody2D>(); shipBody.AddForce(new Vector2(ship.transform.up.x * thrustForce, ship.transform.up.y * thrustForce)); } }