6 namespace HoloToolkit.Unity.InputModule.Examples.Grabbables
14 public float ThrowMultiplier {
get {
return throwMultiplier; }
set { throwMultiplier = value; } }
16 public bool ZeroGravityThrow {
get {
return zeroGravityThrow; }
set { zeroGravityThrow = value; } }
18 public bool Thrown {
get {
return thrown; }
set { thrown = value; } }
21 public Vector3 LatestControllerThrowVelocity {
get;
set; }
22 public Vector3 LatestControllerThrowAngularVelocity {
get;
set; }
25 public AnimationCurve VelocityOverTime {
get {
return velocityOverTime; }
set { velocityOverTime = value; } }
27 public AnimationCurve UpDownCurveOverTime {
get {
return upDownCurveOverTime; }
set { upDownCurveOverTime = value; } }
29 public AnimationCurve LeftRightCurveOverTime {
get {
return leftRightCurveOverTime; }
set { leftRightCurveOverTime = value; } }
34 private float throwMultiplier = 1.0f;
37 private bool zeroGravityThrow;
40 private AnimationCurve velocityOverTime;
43 private AnimationCurve upDownCurveOverTime;
46 private AnimationCurve leftRightCurveOverTime;
52 grabbable = GetComponent<BaseGrabbable>();
70 Debug.Log(
"Begin throw detected.");
75 Debug.Log(
"mid throw...");
80 Debug.Log(
"Throw release...");
85 Debug.Log(
"Throw canceled");
94 Debug.Log(
"Throwing..");