User Guide
322 APPENDIX E
loaded
Returns true once the object has fi nished loading.
if (myObject.loaded) { ... }
parent
A reference to the SceneGroup containing the SurfaceObject
objectParent = SurfaceObject.parent;
attachedToParent
A fl ag that is set to true when a SurfaceObject is attached to a SceneGroup using the addTo() method. A
SurfaceObject that is attached to it’s parent will be transformed with the parent. If this fl ag is then set to false, the
child SurfaceObject will act as an independant SceneGroup.
box1 = SceneGroup(“./box.aer”);
box2 = theWorld.getSurfaceObject(“mySurfaceObject”);
loader = new Object()
loader.timestep = function()
{
if (!box1.loaded && !box2.loaded) { return; }
box1.add();
box2.addTo(box1);
box1.physicalModel = box1.createPhysicalModel(5);
box2.physicalModel = box2.createPhysicalModel(10);
box2.attachedToParent = false;
removeAnimator(this);
}
addAnimator(loader);
position
The position as a Vector.
SurfaceObject.position = Vector (10, 5, -25);
orientation
The rotational orientation of the SurfaceObject (as a Rotation).
SurfaceObject.orientation = anchor3.orientation;
transform
The Transform object representing the combined position and orientation.
// Smoothly animate between two EntryPoints
// (including their orientations) over 100 frames:










