UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

29 lines (28 loc) 779 B
import type { Vector3 } from "../Maths/math.vector.js"; import type { IRaycastQuery } from "./physicsRaycastResult.js"; import type { PhysicsBody } from "./v2/physicsBody.js"; /** * Interface for point proximity query. */ export interface IPhysicsPointProximityQuery { /** * The position of the query */ position: Vector3; /** * Maximum distance to check for collisions. Can be set to 0 to check for overlaps. */ maxDistance: number; /** * Collision filter for the query. */ collisionFilter: IRaycastQuery; /** * Should trigger collisions be considered in the query? */ shouldHitTriggers: boolean; /** * Should the query ignore the body that is passed in? */ ignoreBody?: PhysicsBody; }