dacha
    Preparing search index...

    Interface ShapeCastParams

    The parameters of PhysicsAPI.shapeCast and the other shape cast methods. A shape that already overlaps a collider at the start hits it at distance 0.

    Hierarchy (View Summary)

    Index
    actorFilter?: (actor: Actor) => boolean

    Gets each actor and returns false to leave it out.

    direction: Vector

    The direction of the cast.

    excludeActors?: Actor[]

    Leaves these actors out.

    hitFilter?: (hit: CastHit) => boolean

    Gets each hit and returns false to leave it out.

    The query may reuse the hit object, so it is valid only during the call. Do not keep a reference to it.

    layer?: string

    Finds only colliders whose layer collides with this layer, as the collision matrix says.

    maxDistance: number

    How far the cast goes, in world units.

    The shape at the start of the cast.