Interface ShapeProximityResult
interface ShapeProximityResult {
distance: number;
hasHit: boolean;
hitNormal: Vec3;
hitPoint: Vec3;
inputHitNormal: Vec3;
inputHitPoint: Vec3;
}
distance: number;
hasHit: boolean;
hitNormal: Vec3;
hitPoint: Vec3;
inputHitNormal: Vec3;
inputHitPoint: Vec3;
}
Properties
distance
distance: number
Distance between the closest points.
has Hit
hasHit: boolean
Whether a body was found within maxDistance.
hit Normal
Surface normal at the hit-body closest point.
hit Point
Closest point on the hit body (world space).
input Hit Normal
Surface normal at the query-shape closest point.
input Hit Point
Closest point on the query shape (query-shape local space in a zero-offset world).
Result of a shapeProximity query.