神岛 API 文档 - ArenaPro版
    Preparing search index...

    Interface GamePlayerKeyframe

    游戏玩家关键帧接口,定义了玩家在游戏中的动画和视觉属性。

    Interface for game player keyframes, defining the animation and visual attributes of a player in the game.

    interface GamePlayerKeyframe {
        cameraDistance: number;
        cameraEntity: GameEntity;
        cameraFovY: number;
        cameraFreezedAxis: GameCameraFreezedAxis;
        cameraMode: GameCameraMode;
        cameraPosition: GameVector3;
        cameraTarget: GameVector3;
        cameraUp: GameVector3;
        color: GameRGBColor;
        colorLUT: string;
        duration: number;
        easeIn: GameEasing;
        easeOut: GameEasing;
        emissive: number;
        invisible: boolean;
        metalness: number;
        scale: number;
        shininess: number;
        showIndicator: boolean;
        showName: boolean;
    }
    Index

    Properties

    cameraDistance: number

    相机与目标点的距离。

    The distance between the camera and the target point.

    cameraEntity: GameEntity

    相机实体,关联到场景中的具体对象。

    The camera entity, associated with a specific object in the scene.

    cameraFovY: number

    相机垂直视野角,影响投影矩阵的构建。

    The camera's vertical field of view, affecting the construction of the projection matrix.

    cameraFreezedAxis: GameCameraFreezedAxis

    相机冻结轴,限制相机在特定轴上的移动。

    The camera's freezed axis, restricting camera movement on specific axes.

    cameraMode: GameCameraMode

    相机模式,决定相机的移动和旋转行为。

    The camera mode, determining the camera's movement and rotation behavior.

    cameraPosition: GameVector3

    相机位置,相机在世界空间中的坐标。

    The camera position, the coordinates of the camera in world space.

    cameraTarget: GameVector3

    相机目标点,相机试图对准的位置。

    The camera target point, the position the camera tries to aim at.

    cameraUp: GameVector3

    相机上方向量,定义相机的向上方向。

    The camera's up vector, defining the upward direction of the camera.

    玩家模型的颜色,使用RGB格式。

    The color of the player model in RGB format.

    colorLUT: string

    颜色查找表,用于动态调整颜色。

    The color lookup table, used for dynamic color adjustment.

    duration: number

    关键帧持续时间,单位为毫秒。

    The duration of the keyframe in milliseconds.

    easeIn: GameEasing

    加速曲线类型,用于控制动画开始时的速度变化。

    The easing type for acceleration, controlling the speed change at the start of the animation.

    easeOut: GameEasing

    减速曲线类型,用于控制动画结束时的速度变化。

    The easing type for deceleration, controlling the speed change at the end of the animation.

    emissive: number

    自发光属性,使模型在黑暗中可见。

    The emissive property, making the model visible in the dark.

    invisible: boolean

    玩家模型是否不可见。

    Whether the player model is invisible.

    metalness: number

    金属度属性,影响材质的反射和高光特性。

    The metalness property, affecting the reflection and specular characteristics of the material.

    scale: number

    玩家模型的缩放比例。

    The scale of the player model.

    shininess: number

    光泽度属性,影响材质的反光强度。

    The shininess property, affecting the reflective intensity of the material.

    showIndicator: boolean

    玩家指示器是否显示。

    Whether the player indicator is displayed.

    showName: boolean

    玩家名称是否显示。

    Whether the player name is displayed.