UNPKG

xverse-components-character-creator

Version:

xverse components character-creator

40 lines (39 loc) 1.1 kB
import { Avatar, IPosition, World } from '@xverse/core'; export declare class BaseCharacterCreator { private _world; private _tempAvatarEnableCulling; private _tempCameraPose; private _tempAvatarPose; private _tempAvatarScale; private _tempLastJoystick; private _tempBAlignGround; private _tempCameraRotationDisabled; active: boolean; private events; constructor(world: World); roll(avatar: Avatar, isRotate: boolean, rotateSpeed?: number, direction?: number): void; /** * 绑定用户旋转 */ private bindUserRotate; /** * 移除用户旋转绑定 */ private removeUserRotateBind; /** * 调起换装面板 * @param isOn * @param offset * @returns */ private characterCreatorToggle; /** * 将角色放置在背景板的固定位置 * @param isOn 是否聚焦camera */ focusCameraOnUser(isOn: boolean): boolean; /** * 是否展示面板 */ handleCharacterCreator: (isShowPanel: boolean, bgUrl?: string, position?: IPosition) => Promise<void>; }