crashcat docs
    Preparing search index...

    Function getShapeSupportingFace

    • Computes the supporting face, takes a local-space direction and returns face vertices in world space.

      Parameters

      • out: Face

        output face with vertices in world space

      • shape: Shape

        shape to query

      • subShapeId: number

        sub-shape ID

      • localDirection: Vec3

        query direction in local space to the shape

      • position: Vec3

        world position of shape

      • quaternion: Quat

        world rotation of shape

      • scale: Vec3

        scale in local space of the shape

      Returns void