babylon.quarks - v1.0.0
    Preparing search index...

    Interface PhysicsResolver

    What ApplyCollision asks about the world: whether a particle at position has hit something, and if so which way the surface faces.

    interface PhysicsResolver {
        resolve(position: Vector3Like, normal: Vector3Like): boolean;
    }
    Index
    • Tests position, in the simulation space of the system asking. Returns true when it is inside or on a collider, with the surface's unit normal written to normal; false otherwise, leaving normal alone. Both are {x, y, z}: read the position's components and write the normal's.

      Parameters

      Returns boolean