banking

Blitz3D Forums/Blitz3D Beginners Area/banking

how would i bank a spaceship model left or right depending on the speed the mouse is moving left to the left or right? i want it to bank 90 degrees at the most. i can't seem to get results with rotateentity, turnentity or rotatemesh. here's my current moveplayer function (still in it's early stages):
Function moveplayer()
	px# = px# + MouseXSpeed() * .005
	py# = py# + MouseYSpeed() * .005
	px# = px# * .9
	py# = py# * .9
	
	MoveEntity player,-px,0,py
	
	MoveMouse centerx,centery
End Function