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

    当实体与地形接触时触发的事件。 由 GameWorld.onVoxelContact, GameWorld.onVoxelSeparate, GameEntity.onVoxelContact, GameEntity.onVoxelSeparate 触发。

    Index

    Properties

    Properties

    分离轴。

    The separation axis.

    entity: GameEntity

    与地形接触的实体。

    The entity that contacted the terrain.

    碰撞力。

    The collision force.

    tick: number

    接触事件发生的时间。

    The time when the contact event occurred.

    voxel: voxelId

    方块的 ID。

    The ID of the voxel.

    x: number

    接触方块的 x 坐标。

    The x coordinate of the contacted voxel.

    y: number

    接触方块的 y 坐标。

    The y coordinate of the contacted voxel.

    z: number

    接触方块的 z 坐标。

    The z coordinate of the contacted voxel.