Method: mousePos

Gets the position of the mouse relative to this entity's center point.
mousePos (IgeViewport viewport)
  • IgeViewportviewport The viewport to use as the base from which the mouse position is determined. If no viewport is specified then the current viewport the engine is rendering to is used instead.
Returns IgePoint3d The mouse point relative to the entity center.

Get the mouse position relative to the entity

// The returned value is an object with properties x, y, z
var mousePos = entity.mousePos();
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point