Description

Result object returned from ManipulateComponent.intersectManipulateFrame().

Example

// 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);
interface ManipulateFrameIntersectResult {
    getIntersectionPoint(): vec3;
    isValid(): boolean;
}

Methods

  • Returns vec3

    Description

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

  • Returns boolean

    Description

    Returns whether there was a valid intersection.

Generated using TypeDoc