class com.babylonhx.math.Ray

Available on all platforms

... * @author Krtolica Vujadin

Class Fields

static function CreateNew(x:Float, y:Float, viewportWidth:Float, viewportHeight:Float, world:Matrix, view:Matrix, projection:Matrix):Ray

static function CreateNewFromTo(origin:Vector3, end:Vector3, ?world:Matrix):Ray

Function will create a new transformed ray starting from origin and ending at the end point. Ray's length will be set, and ray will be transformed to the given world matrix.

origin

The origin point

end

The end point

world

a matrix to transform the ray to. Default is the identity matrix.

static function Transform(ray:Ray, matrix:Matrix):Ray

Instance Fields

function new(origin:Vector3, direction:Vector3, ?length:Float):Void

function intersectsBoxMinMax(minimum:Vector3, maximum:Vector3):Bool

function intersectsTriangle(vertex0:Vector3, vertex1:Vector3, vertex2:Vector3):IntersectionInfo