simple local-axis joystick controlled camera

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
rooly
Posts: 224
Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:

simple local-axis joystick controlled camera

Post by rooly »

I've completed a joystick-controlled camera class that offsets all it's math to irrlicht. it maintains local up-vectors, rotations, speeds, etc. there are a few extra functions like "getUnitTarget()" that returns a normalized target vector for ray-casting.

Anywho, without further wait,

Download a zip here

Basically, you need irrlicht in the search directory "irrlicht" (capitilization important) and you need SDL in the search directorhy "SDL".

add all 4 files to your project and compile. The event receiver is of my own design and can be found here separately:

http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=29197

The class *SHOULD* be rather self-explanatory. If you want a first-person style camera, it will take a few minor modifications.

This class is designed to be used for flight-simulation.
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
Post Reply