PathEngine home previous: iTestBed::saveCameraPosition()next: iTestBed::setAdditiveBlendingAlpha()
Contents, API Reference, Interfaces, iTestBed, screenToWorld

iTestBed::screenToWorld()

Description

Reverse project a position to world coordinates from screen space, based on the current camera position and orientation.

Syntax

void screenToWorld(float screenX, float screenY, float& worldX, float& worldY, float& worldZ) const;

Parameters

screenX X coordinate of screen position to reverse project.
screenY Y coordinate of screen position to reverse project.
worldX X coordinate of reverse projected position in world space.
worldY Y coordinate of reverse projected position in world space.
worldZ Z coordinate of reverse projected position in world space.

C# Mapping

void screenToWorld(float screenX, float screenY, out float worldX, out float worldY, out float worldZ);

Java Mapping

void screenToWorld(float screenX, float screenY, float_OutArgument worldX, float_OutArgument worldY, float_OutArgument worldZ);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iTestBed::setAdditiveBlendingAlpha()