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. |