crashcat docs
    Preparing search index...

    Function getSurfaceNormal

    • Gets the surface normal at a world-space position on the body's shape. The query is performed relative to the shape's local coordinate system (shape origin, not center of mass).

      Parameters

      • out: Vec3
      • body: RigidBody
      • worldPosition: Vec3
      • subShapeId: number

      Returns Vec3