Result object returned from ManipulateComponent.intersectManipulateFrame.

// Returns an intersectManipulateFrame based on user touch position
//@input Component.ManipulateComponent manip

function onTap(eventData)
{
var touchPos = eventData.getTouchPosition();
var intersectManipFrame = script.manip.intersectManipulateFrame(touchPos);
if(intersectManipFrame && intersectManipFrame.isValid())
{
screenPoint = intersectManipFrame.getIntersectionPoint();

print(screenPoint.toString());
}
}
var tapEvent = script.createEvent("TapEvent");
tapEvent.bind(onTap);

Constructors

Methods

  • If there was a valid intersection, returns the intersection point in world space.

    Returns vec3

  • Returns whether there was a valid intersection.

    Returns boolean

MMNEPVFCICPMFPCPTTAAATR