getNearestPointTo

open fun getNearestPointTo(point: Vec3): Vec3

Returns the nearest point on this geometry to point.


open fun getNearestPointTo(shape: VoxelShape): NearestPointResult?

Returns the nearest point on this geometry to shape.

The shape is expected to already be expressed in the same coordinate system as this geometry. For block-local shapes, call net.minecraft.world.phys.shapes.VoxelShape.move before passing them in.

Return

nearest point on this geometry together with squared distance, or null if shape is empty


Returns the nearest point on this geometry to box.