sorry, this was my code.
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.
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.