skysphere moving

Blitz3D Forums/Blitz3D Programming/skysphere moving

slenkar(Posted 2004) [#1]
Every loop at the end I have:
PositionEntity skybox,EntityX(current_camera,1),EntityY(current_camera,1),EntityZ(current_camera,1),1


which works fine except when the ship collides with something, the skybox moves, spoiling the whole effect.

The skysphere is 2 units big


GfK(Posted 2004) [#2]
I parent the skybox to the camera, then reset the orientation each update:
RotateEntity skyBox,0,0,0,True



slenkar(Posted 2004) [#3]
thanks that sounds better


jhocking(Posted 2004) [#4]
Good tip Gfk, I never thought of that.

Slenkar, make sure to move after UpdateWorld. Collision results aren't handled until UpdateWorld is called.


slenkar(Posted 2004) [#5]
ah I see good tip thanks