The ICompoundColliderShape interface defines the methods for managing compound collider shapes.

ICompoundColliderShape 接口定义了用于管理组合碰撞器形状的方法。

interface ICompoundColliderShape {
    addChildShape(shape: IColliderShape): void;
    destroy(): void;
    getOffset(): Vector3;
    getPhysicsShape(): any;
    removeChildShape(shape: IColliderShape, index: number): void;
    setOffset(position: Vector3): void;
    setShapeData?(component: PhysicsColliderComponent): void;
}

层级 (查看完整内容)

实现于

方法