I am developing a Pinball-Game. I use KinematicCharacterControllers to manage the movement of the flippers but there is no way to rotate them.
I create a ghost object:
Code: Select all
ghost = new PairCachingGhostObject();
and add thee kinematicCharacterKontrollerghost.setWorldTransform(new Transform(new Matrix4f(new Quat4f(1, angle, 0, 0), new Vector3f(xLocation, highness, 2), 1.0f)));
Code: Select all
kinematicController = new KinematicCharacterController(ghost, shape, 1.F);
Code: Select all
flipper.getKinematicController().setWalkDirection(upDir);
Sadly, there is noting like "rotation" "torque" or something like this. How to perform a former "rotation" to KinematicCharacterController ?