JRowe Posted November 2, 2008 Share Posted November 2, 2008 (edited) So, this should be relatively easy. I want to have 3 forces acting on a ship moving through space, with no gravity acting on it (it will slow down on it's own, though.)I have this part working well enough. It's simple: Increment or decrement acceleration along an axis relative to the ship based on the key being pressed, or if the mouse cursor is located along the top or bottom of the screen (up and down).You'll need A.Percy's Irrlicht plugin from here: http://www.box.net/shared/47jcql2vqkDownload my script, then copy and paste both Au3Irrlicht.dll and Irrlicht.dll into the script folder, along with irrlichtplugins.au3.You can fly around in a spaceship My problem is simple, I think. I want the camera to follow behind the ship model, while retaining the movement system. Anyone have any ideas? Edited November 3, 2008 by jrowe [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
JRowe Posted November 2, 2008 Author Share Posted November 2, 2008 Forgot to mention: Esc to quit, WASD to move the ship. Once I can get a decent camera, I'm planning on doing a simple shooter game. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
monoceres Posted November 2, 2008 Share Posted November 2, 2008 To anyone else who are going to test this. You have to change line 41 from: $HeightMap = CreateImageFromFile( @ScriptDir & "\data\terrain-heightmap.bmp" ) To $HeightMap = CreateImageFromFile( @ScriptDir & "\terrain-heightmap.bmp" ) Can't you use SetUpVector to position the camera behind the space ship all the time? Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
JRowe Posted November 2, 2008 Author Share Posted November 2, 2008 (edited) Dunno, I'll check that out Well, so far so good. I've gotten the camera to chase, and now I need to make the increment and decrement work according to the relative orientation of the ship, and not the absolute orientation of the force vector. I'll add pitch and roll, too, I guess. Edited November 2, 2008 by jrowe [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
JRowe Posted November 3, 2008 Author Share Posted November 3, 2008 By the way, devmaster.net is an awesome general resource and game development community.http://www.devmaster.net/wiki/Vectors_and_matrices is exactly what I needed. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now