Public Member Functions | Public Attributes

DiceMaster.Spinner Class Reference

Attach this to any Dice to make it spin around a given axis. More...

List of all members.

Public Member Functions

void Trigger (Rigidbody newTargetRB=null)
 Apply the spin torque.

Public Attributes

float spinTorque = 5
bool triggerOnStart = true
bool autoDestroy = true
Vector3 axis = Vector3.up
float randomAxisOffset = 0.1f

Detailed Description

Attach this to any Dice to make it spin around a given axis.

Can be triggered, or can be configured to trigger at start.


Member Function Documentation

void DiceMaster.Spinner.Trigger ( Rigidbody  newTargetRB = null  ) 

Apply the spin torque.

Parameters:
newTargetRB The rigidbody that is applied the spin. By default this will use the RigidBody attached to the GameObject

Member Data Documentation

Vector3 DiceMaster.Spinner.axis = Vector3.up

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties Defines