Vehicle Editor cooking for jMP

Very easy, similar to animation:

[java]

//load vehicle and access VehicleControl

Spatial car=assetManager.loadModel("Models/MyCar.j3o");

VehicleControl control=car.getControl(VehicleControl.class);

rootNode.attachChild(car);

physicsSpace.add(control);



//then use the control to control the vehicle:

control.setPhysicsLocation(new Vector3f(10,2,10));

control.accelerate(100);

[/java]

:slight_smile: Hopefully i’ll be able to give this a spin in the next day or two, thanks for the plugin btw!

beniboy said:
and when i try to test my car, it starts bouncing.

I had that too on a few cars but by tweaking the suspension (use the sliders provided, best not with extreme settings) and weight (click VehicleControl in SceneExplorer and edit property).