Avatar & Camera Basic Setup
This guide covers the basic setup for avatars and cameras.
If you want to use the avatar and camera without detailed adjustments, follow these steps.
β οΈ
If you selected the Metaverse when creating the project, these settings are applied by default.
In the PresetScript
script, which is created by default when you start a project, enter the following code:
PresetScript
const camera = WORLD.getObject("MainCamera");
const avatar = REDBRICK.AvatarManager.createDefaultAvatar();
avatar.setDefaultController();
avatar.setFollowingCamera(camera);
With this setup, the camera will use third-person mode, and the avatar will be the one set on the Redbrick website. For detailed settings on camera properties, FPS mode, TPV mode, etc., please refer to this page.