IgeEntity

Method: rotateToPoint

Rotates the entity to point at the target point around the z axis.
rotateToPoint (IgePoint3d point)
  • IgePoint3dpoint The point in world co-ordinates to point the entity at.
Returns *

Point the entity at another entity

entity.rotateToPoint(otherEntity.worldPosition());

Point the entity at mouse

entity.rotateToPoint(ige._currentViewport.mousePos());

Point the entity at an arbitrary point x, y

entity.rotateToPoint(new IgePoint3d(x, y, 0));
© 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