hoffhoff
06-07-2006 21:28:33
Hello,
I´m trying to create a floating craft in my game. So, I´ll have to apply a force on Y axis to make it float. This force is proportional to the distance between the craft and the floor.
So, how´s the best way to calculate that distance? I read some math books and examples, but I´m still having problems to understand quaternations =~
Also, have anyone ever created some game with spaceships, helicopters or things that flies? Because when it is floating, there is no fricticion, so if you aply some force for movement, it will keep moving even after you release the button. Well, I created a function that applies forces to stop the movement of the body when no key is being pressed. Is that the best way to do this?
Thanks!
I´m trying to create a floating craft in my game. So, I´ll have to apply a force on Y axis to make it float. This force is proportional to the distance between the craft and the floor.
So, how´s the best way to calculate that distance? I read some math books and examples, but I´m still having problems to understand quaternations =~
Also, have anyone ever created some game with spaceships, helicopters or things that flies? Because when it is floating, there is no fricticion, so if you aply some force for movement, it will keep moving even after you release the button. Well, I created a function that applies forces to stop the movement of the body when no key is being pressed. Is that the best way to do this?
Thanks!