getNormalFromSurfacePoint method

Vector3 getNormalFromSurfacePoint(
  1. Vector3 point,
  2. Vector3 result
)

Returns the normal for a given point on this bounding sphere's surface.

Implementation

Vector3 getNormalFromSurfacePoint(Vector3 point, Vector3 result ) {
	return result.subVectors( point, center ).normalize();
}