Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- moveY = myTransform.up * Input.GetAxisRaw("UpDown");
- moveZ = myTransform.forward * Input.GetAxisRaw("ForwardBack");
- m_body.AddForce((moveY + moveZ).normalized * thrustPower * Time.deltaTime, ForceMode.Acceleration);
- extraThrust = Vector3.Angle((moveY + moveZ), m_body.velocity.normalized);
- thrustPower = oldThrust + extraThrust * 2f;
Add Comment
Please, Sign In to add comment