mousemove method

void mousemove(
  1. dynamic event
)

Implementation

void mousemove( event ) {
	if (!dragToLook || mouseStatus > 0 ) {
		final container = _getContainerDimensions();
		final halfWidth = container.size.width / 2;
		final halfHeight = container.size.height / 2;

		moveState.yawLeft = - ( ( event.pageX - container.offset.dx ) - halfWidth ) / halfWidth;
		moveState.pitchDown = ( ( event.pageY - container.offset.dy ) - halfHeight ) / halfHeight;

		updateRotationVector();
	}
}