Astro Warrior Space Sim Project

Blitz3D Forums/Blitz3D Programming/Astro Warrior Space Sim Project

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Here's some joystick code that will allow you to roll and pitch at a specified rate. Here' you can pitch 60 degrees per second and roll 120 degrees per second. The time delta (dt) ensures everyone pitches and yaws at the same rate. Each ship could have a slightly different pitch and yaw rate for design differences. We can put some roll in there too.

Since it's space, we don't have to worry about terrestrial physics! Woot!

PitchRate=60
YawRate=120
Jpitch# = -JoyY() * PitchRate * dt
Jyaw#  = -JoyX() * YawRate * dt