Hello
This is a part from my script:
//Torque, using accelerometer or keyboard.
if(Accelerometer Speed >= MinSpeedToTakeOff){
//Accelerometer
rigidbody.AddRelativeTorque (Input.acceleration.x * TorqueSpeed,0,Input.acceleration.y * TorqueSpeed * 2);
}else if(Speed >= MinSpeedToTakeOff){
//Keyboard
rigidbody.AddRelativeTorque (Input.GetAxis("Vertical") * TorqueSpeed * rigidbody.mass,0,-Input.GetAxis("Horizontal") * TorqueSpeed * rigidbody.mass);
}
my problem is:
When i tilting my device to the left side, the plane is rising!
When i tilting my device to the right, the plane is goes down!
When i tilting my device forward the plane goes to the left!
When i tilting my device backwards the plane goes to the right!
but i want this:
When i tilting my device to the left side, the plane have to go to the left!
When i tilting my device to the right, the plane have to go to the right!
When i tilting my device forward the plane hae to rising!
When i tilting my device backwards the plane have to go down!
how do I change the script, so that it’s like I want!
i hope somebody understand my question and can help me!
Thanks a lot!