Erain 3D
advert here

Porting your code from Sandy 1.1 to Sandy 1.2

This FAQ discuss the major API changes from Sandy 1.1 to Sandy 1.2, so you can update your code.

Remember that 1.2 remains a beta and somewhat buggy. Be sure to download the latest patches from the online source repository

Things you need to correct in your code to port it from Sandy 1.1 to Sandy 1.2 include the following

Camera and World changes

These changes affect how you set up your camera and add it to the world:

Skinning changes

Object3D changes

The getPosition() method of Object3D has changed. In Sandy 1.1, it returned the object's position in world coordinates, but in Sandy 1.2, it returns the obect's position in the camera’s coordinate system.

Polygons/faces changes

See more changes below.

Advanced developer changes

For developers who modify the Sandy classes themselves, also note you must:

public function getId(Void):Number {return _id;}

For details on how to add conditions to your code so it compiles under either Sandy 1.1 or Sandy 1.2, see here.