JV-ODE Physics Thread 11

Blitz3D Forums/Blitz3D Userlibs/JV-ODE Physics Thread 11

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Okay, getting there...

Based on information here (http://www.ode.org/old_list_archives/2006-June/019114.html) I started tweaking the 'ball control' code and added stuff like here:
	dBodySetRotation(c\body,0, 0, 0)
	dBodySetAngularVel(c\body,0, 0, 0)
	dBodySetTorque (c\body,0, 0, 0)

	;xforce# = leftforce-rightforce
	;zforce# = forwardforce-backforce

	dBodyAddForce(c\body, xforce#, 0, zforce# )


This works pretty good for moving FORWARD + RIGHT, but for some reason when I try to move down or left, it always moves 'southwest'. I haven't used ray nor spring yet, but will try that stuff at some point.

Here's the full code (any help regarding the odd behavior for down/left movement gladly taken):

(EDIT: see below for newer code...)