Hello everyone,
I have created a car with wheels in Blender. The car is the parent of the four wheels. How do I rotate the wheels in away3d?
This is how I created the car in away3d:
/code/
smartMaterial = new BitmapFileMaterial(“assets/smarttexture.png”);
smartMaterial.bothSides = true;
smartMaterial.ambient = 0.6;
smartMaterial.ambientColor = 0xFFFFFF;
smartMaterial.specularColor = 0xFFFFFF;
smartMaterial.lights = [light1];
// Load a 3D model into a container
smartCar = new ObjectContainer3D();
// Load the model
Loader3D.enableParser(Max3DSParser);
loader = new Loader3D();
loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onResourceComplete);
loader.addEventListener(LoaderEvent.DEPENDENCY_ERROR, dependancyErrorHandler);
loader.load(new URLRequest(“assets/smartroadster.3ds”));
smartCar.addChild(loader);
view.scene.addChild(smartCar);
smartCar.scale(200);
smartCar.rotationY = 65;
/code/
And: How do I create a shadow from the car on the ground?
Many thanks
Edgar