Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.88 KB

sample-projects-spinning-cube.md

File metadata and controls

38 lines (28 loc) · 1.88 KB

Contents | Home > Sample projects > Spinning cube

Spinning Cube

This sample is included with the com.unity.cluster-display.graphics package and can be installed using the Package Manager. It shows a spinning cube on a background with moving lines.

It provides a simple demo scene letting users try out the following features:

  • Network synchronization
  • Swap barriers (if Quadro Sync is present)
  • Time synchronization (spinning animation uses the Timeline)
  • Skinned Mesh Animation.
  • VFX Graph Particles.
  • Legacy Particles (Shuriken).
  • Additive Scene Loading.

The project comes with two scenes:

  • Main: main scene holding camera, particles, skinned mesh.
  • SpinnyCube: a very basic scene holding a procedurally animated cube, meant to be additively loaded to the main scene.

Camera Controls

The camera comes with a custom controller, allowing it to move around a target while looking at it. It also allows for sudden changes in camera position (jumps), meant to validate that camera cuts behave properly.

This controller responds to user input, and will otherwise animate the camera automatically. Automatic behavior includes movement and jumps.

Input

  • Use arrows to move around the target.
  • Press "J" to jump.

Exposed fields

Asymmetric Projection Figure

  • Look At: the Transform the camera will look at.
  • Rotation Speed: speed at which the camera rotates around the target.
  • Distance To Target: distance between the camera and its target.
  • Switch To Automatic Timeout: timeout beyond which the controller switches to automatic mode if no input is detected.
  • Automatic Jump Delay: delay between automatically triggered jumps.
  • Automatic Motion Factor: in automatic mode, arrows input is simulated. This factor allows to control the amount of camera movement.