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

    Interface GameEntityKeyframe

    定义游戏实体关键帧的接口。

    Defines the interface for a game entity keyframe.

    interface GameEntityKeyframe {
        collides: boolean;
        duration: number;
        easeIn: GameEasing;
        easeOut: GameEasing;
        fixed: boolean;
        friction: number;
        gravity: boolean;
        interactColor: GameRGBColor;
        mass: number;
        mesh: any;
        meshColor: GameRGBAColor;
        meshEmissive: number;
        meshInvisible: boolean;
        meshMetalness: number;
        meshOffset: GameVector3;
        meshOrientation: GameQuaternion;
        meshScale: GameVector3;
        meshShininess: number;
        particleAcceleration: GameVector3;
        particleColor: GameRGBColor[];
        particleDamping: number;
        particleLifetime: number;
        particleLifetimeSpread: number;
        particleLimit: number;
        particleNoise: number;
        particleNoiseFrequency: number;
        particleRate: number;
        particleRateSpread: number;
        particleSize: number[];
        particleSizeSpread: number;
        particleTarget: GameEntity;
        particleTargetWeight: number;
        particleVelocity: GameVector3;
        particleVelocitySpread: GameVector3;
        position: GameVector3;
        restitution: number;
        velocity: GameVector3;
    }
    Index

    Properties

    collides: boolean

    实体是否可以碰撞。

    Whether the entity can collide.

    duration: number

    关键帧的持续时间。

    The duration of the keyframe.

    easeIn: GameEasing

    关键帧的加速方式。

    The easing-in method for the keyframe.

    easeOut: GameEasing

    关键帧的减速方式。

    The easing-out method for the keyframe.

    fixed: boolean

    实体是否固定。

    Whether the entity is fixed.

    friction: number

    实体的摩擦力。

    The friction of the entity.

    gravity: boolean

    实体是否受重力影响。

    Whether the entity is affected by gravity.

    interactColor: GameRGBColor

    实体的交互颜色。

    The interaction color of the entity.

    mass: number

    实体的质量。

    The mass of the entity.

    mesh: any

    实体的网格模型。

    The mesh model of the entity.

    meshColor: GameRGBAColor

    实体的网格颜色。

    The color of the entity's mesh.

    meshEmissive: number

    实体的网格发光强度。

    The emissive intensity of the entity's mesh.

    meshInvisible: boolean

    实体网格是否不可见。

    Whether the entity's mesh is invisible.

    meshMetalness: number

    实体的网格金属度。

    The metalness of the entity's mesh.

    meshOffset: GameVector3

    实体的网格偏移。

    The offset of the entity's mesh.

    meshOrientation: GameQuaternion

    实体的网格朝向。

    The orientation of the entity's mesh.

    meshScale: GameVector3

    实体的网格缩放。

    The scale of the entity's mesh.

    meshShininess: number

    实体的网格光泽度。

    The shininess of the entity's mesh.

    particleAcceleration: GameVector3

    实体的粒子加速度。

    The acceleration of the entity's particles.

    particleColor: GameRGBColor[]

    实体的粒子颜色数组。

    The color array of the entity's particles.

    particleDamping: number

    实体的粒子阻尼。

    The damping of the entity's particles.

    particleLifetime: number

    实体的粒子生命周期。

    The lifetime of the entity's particles.

    particleLifetimeSpread: number

    实体的粒子生命周期的随机范围。

    The random spread of the entity's particle lifetime.

    particleLimit: number

    实体的粒子数量上限。

    The maximum number of particles for the entity.

    particleNoise: number

    实体的粒子噪声强度。

    The noise intensity of the entity's particles.

    particleNoiseFrequency: number

    实体的粒子噪声频率。

    The noise frequency of the entity's particles.

    particleRate: number

    实体的粒子发射速率。

    The particle emission rate of the entity.

    particleRateSpread: number

    实体的粒子发射速率的随机范围。

    The random spread of the entity's particle emission rate.

    particleSize: number[]

    实体的粒子大小数组。

    The size array of the entity's particles.

    particleSizeSpread: number

    实体的粒子大小的随机范围。

    The random spread of the entity's particle size.

    particleTarget: GameEntity

    实体的粒子目标。

    The target of the entity's particles.

    particleTargetWeight: number

    实体的粒子目标权重。

    The target weight of the entity's particles.

    particleVelocity: GameVector3

    实体的粒子初速度。

    The initial velocity of the entity's particles.

    particleVelocitySpread: GameVector3

    实体的粒子初速度的随机范围。

    The random spread of the entity's particle initial velocity.

    position: GameVector3

    实体的位置。

    The position of the entity.

    restitution: number

    实体的恢复系数。

    The restitution coefficient of the entity.

    velocity: GameVector3

    实体的速度。

    The velocity of the entity.