Friday 11 October 2013

Unity - Core Game mechanics

Unit movement mechanics

  • Basic movement for any worldObject with unit class script attached


Selection of units and buildings

  • Raycasting used to detect if mesh collider is clicked on by the cursor
  • Name of unit or building displayed in GUI


Camera Controls
  • Camera pans when mouse reaches edge of screen, the extents of this can be defined in the resource manager
  • Camera can rotate with RMB when left alt is held down
  • The scroll and rotate speed and amount can be defined in ResourceManager script and can be later hooked up to a options menu GUI



No comments:

Post a Comment