Quadrocopter flight

hi there,

i am trying to make a kind of flight simulator with a quadrocopter but i am having some (in fact a lot) problems with the control…

i think that it should be easy, but i dont get it…

i want to have a float “power” that makes it go up (in local Y) and than rotate it, so that the power can be used to go forward OR to go up… (if it is going forward it should go down at the same time)

my first test went quite goot, but my copter ignored collisions. so i tried to make a rigidbody and apply velocities on it. but its a lot more complicated -.-

so in fact i need rotation around the X,Y,Z axis and local up down on the local Y (with gravity)

do you have some ideas?

  1. Attach a Rigidbody to your copter (sounds like you’ve already done this).
  2. Use rigidbody.AddForce() and rigidbody.AddTorque() to manipulate it.

Quadrocopters usually either rotate their blades to vector their lift or control their RPMs individually; so you should probably attempt to apply force at the rotors. This will lead to an accurate simulation of how they work. If you’re not worried about physics accuracy, then just use a single rigidbody for the fuselage and provide force/torque input to that.

You can also use rigidbody.AddRelativeForce which would allow separate force numbers for up(y) forward(z) and side to side (x).