Problem controlling Newton.

BlitzMax Forums/BlitzMax Programming/Problem controlling Newton.

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.

sorry, this was my code.
Function  PhysicsApplyForceAndTorque (Body:Byte Ptr)
	Local Mass:Float
	Local IXX:Float
	Local IYY:Float
	Local IZZ:Float
	Global ForceX:Float = 0.0
	Global ForceY:Float = 0.0
	Global ForceZ:Float = 10.0
	
	NewtonBodyGetMassMatrix (Body, VarPtr Mass, VarPtr IXX, VarPtr IYY, VarPtr IZZ)
	
	'The mesh only moves if the values if they are preset.
	Global Force:Float[] =  [-mass * ForceX, -mass * ForceY, -mass * ForceZ]
	Global Torque:Float[] = [TorqueX, TorqueY, TorqueZ]
	NewtonBodyAddForce (Body, VarPtr Force[0])
	NewtonBodyAddTorque (Body, VarPtr Torque[0])
End Function


Same problem.
But, how do I setup a newton command out side the newton function, in the input method?
When I added the NewtonWorldUnfreezeBody(nWorld, body) command in my input method I get the error "Identifier 'body' not found". These wrapper modules are confusing.
Thank you.