Click or drag to resize

WeatherMakerSphereCreatorRaySphereIntersect Method

Ray sphere intersect on CPU

Namespace:  DigitalRuby.WeatherMaker
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public static bool RaySphereIntersect(
	Vector3 rayOrigin,
	Vector3 rayDir,
	float rayLength,
	Vector4 spherePosition,
	out float intersectAmount,
	out float distanceToSphere
)

Parameters

rayOrigin
Type: Vector3
Ray origin
rayDir
Type: Vector3
Ray dir
rayLength
Type: SystemSingle
Ray max length
spherePosition
Type: Vector4
Sphere center
intersectAmount
Type: SystemSingle
Receives intersection amount
distanceToSphere
Type: SystemSingle
Receives distance to sphere

Return Value

Type: Boolean
True if hit, false if not
See Also