AutoMovie API
    Preparing search index...

    Type Alias IAutoMoviePhysicalShape

    IAutoMoviePhysicalShape: {
        id: string;
        material: string;
        transform: IAutoMovieRigidTransform;
    } & (
        | { kind: "sphere"; radius: number }
        | { halfLength: number; kind: "capsule"; radius: number }
        | { halfExtents: IAutoMovieVector3; kind: "box" }
        | { kind: "hull"; points: IAutoMovieVector3[] }
    )

    A finite solid collider placed in its segment's bone frame.

    A kind discriminator chooses sphere, local-Y capsule, oriented box or convex hull dimensions. The hull is the convex hull of its supplied shape-local points; interior points are refused by physical admission. Every shape references a profile material and has an identity unique within its segment. Dimensions are metres; soft-layer depth must leave a positive solid core.

    Type Declaration

    • id: string

      Unique within its segment.

    • material: string

      Reference into the owning profile's materials.

    • transform: IAutoMovieRigidTransform

      Bone-local placement.

    • { kind: "sphere"; radius: number }
      • kind: "sphere"

        Solid sphere.

      • radius: number

        Positive metres.

    • { halfLength: number; kind: "capsule"; radius: number }
      • halfLength: number

        Nonnegative cylindrical half-length, metres.

      • kind: "capsule"

        Capsule along local Y.

      • radius: number

        Positive metres.

    • { halfExtents: IAutoMovieVector3; kind: "box" }
      • halfExtents: IAutoMovieVector3

        Positive local half-extents, metres.

      • kind: "box"

        Solid oriented box.

    • { kind: "hull"; points: IAutoMovieVector3[] }
      • kind: "hull"

        Solid convex polytope: the convex hull of its points.

      • points: IAutoMovieVector3[]

        At least four shape-local vertices, metres, not all in one plane; every point is a vertex or lies on the hull's surface, never inside it.