crashcat docs
    Preparing search index...

    Type Alias ScaledShapeSettings

    settings for creating a scaled shape.

    note that some shapes only support uniform scaling:

    • sphere

    compound and transformed shapes scale their children's offsets as well as the children themselves, and a rotated child gets the scale rotated into its own frame. under a non-uniform scale that only exists for rotations that keep the scale's axes aligned (multiples of 90 degrees); any other rotation would need a shear, which no shape supports.

    non-uniform scaling of a convex hull is supported but significantly slower than uniform scaling: the convex-radius-shrunk vertex set is rebaked per collision pair every frame. prefer uniform scale, or bake the scaled geometry into the hull points directly.

    type ScaledShapeSettings = {
        scale: Vec3;
        shape: Shape;
    }
    Index

    Properties

    Properties

    scale: Vec3
    shape: Shape