Public classes


Scripts/

   Trivision
   TrivisionPrism
   TrivisionRunner


Introduction page

TrivisionPrism
Derived from MonoBehaviour


Single prism of trivision board. Prism contains 3 sides and 2 triangluar shaped bases. Each side of prism contain small part of 3 different images used by trivision board.


Enums

public enum RotationStyleEnumeration of different styles how prism can rotate.

Methods

public void SetSideInstantly (int sideIndex)Set certain side of this prism to point forward instantly.
public void StartTransitionToSide (int sideIndex, float timeSeconds, RotationStyle rotationStyle, float delaySeconds)Starts transition from current rotation to another rotation so that in the end wanted side is pointing forward.

Enums

public enum RotationStyle

Enumeration of different styles how prism can rotate.

ItemsLinearSpeed of rotation will stay smae from start to end.
 SlowStartRotation starts slowly and ends fast.
 SlowEndRotation starts fast and ends slowly.
 SmoothStartAndEndRotation starts and ends smoothly, moving faster in middle of rotation.


Methods

public void SetSideInstantly (int sideIndex)

Set certain side of this prism to point forward instantly. This will cancel any possible transitions in progress.

ParameterssideIndexSide to set front.


public void StartTransitionToSide (int sideIndex, float timeSeconds, RotationStyle rotationStyle, float delaySeconds)

Starts transition from current rotation to another rotation so that in the end wanted side is pointing forward.

ParameterssideIndexSide to set front eventually.
 timeSecondsHow many seconds rotation should take.
 rotationStyleStyle of rotation, one of the enum RotationStyle.
 delaySecondsDelay that prism will wait before starting the rotation.