Public Member Functions | Public Attributes

DiceMaster.Thrower Class Reference

Attach this to any Dice to throw it in a given direction. More...

List of all members.

Public Member Functions

void Trigger (Rigidbody newTargetRB=null)
 Apply the throw force.

Public Attributes

float throwStrength = 5
bool triggerOnStart = true
bool autoDestroy = true
Vector3 direction = Vector3.up
float randomDirectionOffset = 0.1f

Detailed Description

Attach this to any Dice to throw it in a given direction.

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


Member Function Documentation

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

Apply the throw force.

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

Member Data Documentation

Vector3 DiceMaster.Thrower.direction = Vector3.up

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