Using W3D and HKE files

> > We will assume that a scene has been constructed in an external 3D modeler and both a W3D and HKE file exported representing the 3D data and physics data respectively. For more information on this process consult the Shockwave3D Exporter and Havok Exporter documentation.

> > First import the 3D world:

> > 1. Click the File menu.
> > 2. Select Import from the File menu.
> > 3. Select required Shockwave 3D (W3D) file from the dialog window.

> > This adds the 3D cast member to the cast. This may then be dragged onto the stage. Now import the required Havok cast member:

> > 1. Click the File menu.
> > 2. Select Import from the File menu.
> > 3. Select required Havok Export (HKE) file from the dialog window.

> > This adds the Havok cast member to the cast. Playing the movie at this stage will show a static world. In order to make the world dynamic the Havok simulation must be initialized and linked to the 3D world.

> > Dragging the Physics (HKE) behavior (located in the Havok > Setup behavior library) onto the sprite representing a view of the 3D world will do this - ensure that the Which Havok Cast Member parameter is set to the Havok Physics Scene member name. This behavior initializes the Havok simulation (links 3D objects from the W3D file to rigid bodies in the HKE file). It also advances time in the physics simulation after each step of the movie and updates the positions and orientations of the 3D objects currently under physics control. You can supply other parameters when the behavior is dragged onto the stage, but the defaults will usually be fine.

> > At this point other behaviors may be dragged onto the stage for additional physical results. For example, drag the Move Model behavior (found in the Havok > Control behavior library) onto the stage and select "Any Model" for the Which Model parameter. Next drop a Mouse Left trigger onto the stage (from the 3D > Triggers behavior library) and associate the trigger with the Move Model behavior (selectable in the Select a Group and its Action parameter).

> > Now it should be possible to pick up the 3D models in the scene a move them around with the mouse pointer and the left mouse button.