Jump to content
  • Advertisement

Twaxx

Member
  • Content count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Twaxx

  • Rank
    Newbie

Personal Information

  • Interests
    Programming
  1. I am not using Unity at the moment.
  2. Hey guys, I am having troubles with some basic flight controls. When the plane is overhead the yaw is reversed so that left is right. Do I need to multiply the yaw with the local up vector? var turnRateX = Input.Mouse.Position.X - 0.5f; // MousePosition is normalised [0 to 1] var turnRateY = Input.Mouse.Position.Y - 0.5f; var turnRate = IsBoosting ? maxTurnRateBoosting : maxTurnRate; turnRateX *= turnRate / 60f * -1f; turnRateY *= turnRate / 60f * -1f; YawSpeed = turnRateX; PitchSpeed = turnRateY; Yaw += YawSpeed; Pitch += PitchSpeed; Entity.Transform.Rotation = Quaternion.RotationYawPitchRoll(Yaw, Pitch, 0); How do I fix this?
  3. Thank you very much, I got it working
  4. Thank you for your reply, sadly it isn't working for me. The projectile either keeps spinning wildly or is going in a different direction
  5. Hey guys, I have a homing missile which I want to direct towards the target with a limited rotation speed. The rotation should be limited by an angle in Degrees per second. How do I accomplish this?
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!