Example #1
0
 // Update
 public void Update()
 {
     if (_isGrabbed)
     {
         MoveUtil.AccelerateClampedToward(
             _rigidbody,
             Camera.main.transform.TransformPoint(_offset),
             _acceleration,
             _maxAcceleration,
             _maxVelocity,
             _timeToReach);
     }
 }