Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Ray.GetPoint

Switch to Manual
public function GetPoint(distance: float): Vector3;

Parameters

Description

Returns a point at distance units along the ray.

	var r : Ray;
	print( r.GetPoint (10) ); // a point 10 units along the ray