This is proving a LOT harder than I first suspected, so I thought maybe I'd have better luck here.
Original post:
http://www.blitzbasic.com/bbs/posts.php?topic=17097
I hope you can understand what I am trying to do. I wish to give the ship some form of inertia/momentum.
I would like to maintain correct physical laws of motion etc, and have made prior definitions for ship mass/acceleration etc.
Perhaps
m*v
for all three dimensions can be combined (with trig) to move in an overall movement in *a* direction, but although joker's code was just what I was looking for with regards to 2D, when trying to expand it to 3D it gets too complicated. I also thought of Integration to expand into 3D, but the maths just got far too complicated for me.
It may be interesting to note that the ship Pitches and Rolls. It doesn't turn by Yaw. This does make figuring out it's actual change in orientation quite difficult, along with the fact that I think Pitch ranges from +90 to -90 or similar (as polar). Whereas Roll and Yaw both rotate -180-180 or 0-360...(see I get confused again!)
Hope someone can help! Many Thanks.
Original post:
http://www.blitzbasic.com/bbs/posts.php?topic=17097
I hope you can understand what I am trying to do. I wish to give the ship some form of inertia/momentum.
I would like to maintain correct physical laws of motion etc, and have made prior definitions for ship mass/acceleration etc.
Perhaps
m*v
for all three dimensions can be combined (with trig) to move in an overall movement in *a* direction, but although joker's code was just what I was looking for with regards to 2D, when trying to expand it to 3D it gets too complicated. I also thought of Integration to expand into 3D, but the maths just got far too complicated for me.
It may be interesting to note that the ship Pitches and Rolls. It doesn't turn by Yaw. This does make figuring out it's actual change in orientation quite difficult, along with the fact that I think Pitch ranges from +90 to -90 or similar (as polar). Whereas Roll and Yaw both rotate -180-180 or 0-360...(see I get confused again!)
Hope someone can help! Many Thanks.