liko
    Preparing search index...

    Interface ICollision

    物理碰撞事件信息

    interface ICollision {
        contact: { normal: { x: number; y: number; z: number } };
        other: RigidBody;
    }
    Index

    Properties

    Properties

    contact: { normal: { x: number; y: number; z: number } }

    碰撞点的接触信息,包含碰撞法线向量

    other: RigidBody

    与当前刚体发生碰撞的其他刚体对象