I can’t use the SimpleApplication class so I created a custom updater for the PhysicsSpace.
I try to manually call the update method of my physicsSpace but nothing move… What’s wrong ?
To update the physicsSpace I use :
physicsSpace.update(tpf);
I try to add a custom controller in the PhysicsSpace :
physicsSpace.add(new SimpleController());
I the controller I have the default update method where I put a simple log to know if the method is called:
@Override
public void update(float tpf) {
System.out.println(“SimpleController.update”);
}
The message is never called !
My SimpleController extends AbstractPhysicsControl. And I implemented the addPhysics method:
This method is called, so it’s good…
You can see that I use a trickListener too. And the methods prePhysicsTick et physicsTick are called, it’s also good