}
public Object castRay(Vector3f from, Vector3f to, VehicleRaycasterResult result) {
//RayResultCallback& resultCallback;
ClosestRayResultCallback rayCallback = new ClosestRayResultCallback(from, to);
dynamicsWorld.rayTest(from, to, rayCallback);
if (rayCallback.hasHit()) {
RigidBody body = RigidBody.upcast(rayCallback.collisionObject);
if (body != null && body.hasContactResponse()) {
result.hitPointInWorld.set(rayCallback.hitPointWorld);
result.hitNormalInWorld.set(rayCallback.hitNormalWorld);
result.hitNormalInWorld.normalize();