API reference
API reference
Select your platform
No SDKs available
No versions available

SurfaceUtils Class

Tools for working Surfaces on Interactables

Static Member Functions

The distance above a surface along the closest normal.
Returns 0 for where the sphere touches the surface along the normal.
Parameters
interactable
The PokeInteractable surface to test
point
The origin point to compute distance from the surface
radius
The radius of the sphere positioned at the origin point
The distance to a surface along the tangent.
Parameters
interactable
The PokeInteractable surface to test
point
The origin point to compute distance from the surface
radius
The radius of the sphere positioned at the origin point
The distance below a surface along the closest normal.
always positive.
Parameters
interactable
the pokeinteractable surface to test
point
the origin point to compute distance from the surface
radius
the radius of the sphere positioned at the origin point
The distance from the closest point as computed by the proximity field and surface.
Returns the distance to the point without taking into account the surface normal.
Parameters
interactable
the pokeinteractable surface to test
point
the origin point to compute distance from the surface
radius
the radius of the sphere positioned at the origin point
Did you find this page helpful?
Thumbs up icon
Thumbs down icon