Creator Adding physics and avatars¶
Step-By-Step Tutorial¶
Step 1. Adding physics to model is simple. In the model's properties, expand the 'Behaviour' stack-panel and click the 'Enabled' box under Physics.
Step 2. To create a spawn portal for avatar, go to Insert > Portal
Step 3. Place the spawn portal in an appropriate location and name it "avatar-portal".
Step 4. Now switch over to the IMML Script Editor.
Step 5. For the purpose of this tutorial, we will be using a multi-user avatar plugin script from here
Download the Avatar-plugin-scripts.txt file, copy all the code and paste it into the IMML Script Editor.
Step 6. Press [Ctrl] + [F] to bring up the Search Menu. Type in 'm.position' in the search field to find the spawn location code of the avatar. Once found, change 'portal' to 'avatar-Portal' in the highlighted line of code as shown below.
Step 7. To set '3rdPersonChase' as the default document camera, type in Camera="3rdPersonChase" In the fist line of code.
Step 8. To save your work, go to Creator button > Save. The park is now ready to be hosted locally on WorldServer Developer Edition. Click Here to continue to the next part of the tutorial.