Space Movement Help

Blitz3D Forums/Blitz3D Programming/Space Movement Help

Rimmsy(Posted 2008) [#1]
I've had a good old search using the forum search facility and also google but still can't find the solution I'm looking for. It's been a while since I've used the 3D aspect but I'm back with the Blitz3DSDK and looking for some help.

I'm writing a space game and my dust is represented by 3d data rather than pivots or sprites. I'm actually using Antony's code from the archives



... in my 3d environment, but when I move the camera, say to fly through space, the dust doesn't move with it. What I'm looking for is to somehow come up with three variables for the dust to be modified and move accordingly. If you look in Antony's example, you'll see cP, cT, cR (pitch, yaw, roll) and cX, cY, cZ (position) as the variables to move. With his example you can just move them left and right, etc, but I'm not sure how to translate this from the 3D camera movements in my game.

Any help?


mtnhome3d(Posted 2008) [#2]
x=entityx(camera),y=entityy(camera),z=entityz(camera) and positionentity dust,x,y,z