Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

438 B
Raw Blame
export const MOBILE_AUTO_ROTATE_SPEED = 0.15;

type EvePointerInteractionMode = {
  paintEnabled: boolean;
  autoRotateEnvYaw: boolean;
};

export function evePointerInteractionMode(isCoarsePointer: boolean): EvePointerInteractionMode {
  return {
    paintEnabled: !isCoarsePointer,
    autoRotateEnvYaw: isCoarsePointer,
  };
}

export function mobileAutoEnvYaw(timeSeconds: number) {
  return timeSeconds * MOBILE_AUTO_ROTATE_SPEED;
}