Ball Controller


BallController is component of the KinectController-game object in KinectPhysicsDemo-scene. It controls the ball state and physics in the scene, when the ball gets thrown to the barrel.



Property:
Description:

Player Index

Index of the player, tracked by this component. 0 means the 1st player, 1 - the 2nd one, 2 - the 3rd one, etc.

Ball Object

The ball game object.

Min Throw Distance

Minimum movement distance, used to consider the ball being thrown.

Time Throw Limit

Maximum time in seconds, used to consider the ball being thrown.

Velocity Scale

Velocity scale.

Info Text

GUI-Text to display information messages.

Current State

Current state of the ball.