Vector3f controlBallLocation = controlBallTransform.origin;
Vector3f cameraPosition = new Vector3f(camera.x(), camera.y(), camera.z());
// Calculate the force that is applied to the controllable ball as following:
// force = cameraPosition - controlBallLocation
Vector3f force = new Vector3f();
force.sub(cameraPosition, controlBallLocation);
// Wake the controllable ball if it is sleeping.
controlBall.activate(true);
// Apply the force to the controllable ball.
controlBall.applyCentralForce(force);
}