public override void OnTriggerWasReleased(RWVR_InteractionController controller)
    {
        base.OnTriggerWasReleased(controller);

        if (hideControllerModel)
        {
            controller.ShowControllerModel();
        }
        ReleaseFromController(controller);
    }
 public override void OnTriggerWasReleased(RWVR_InteractionController controller)
 {
     base.OnTriggerWasReleased(controller);
     if (hideControllerModelOnGrab)
     {
         controller.ShowControllerModel();
     }
     rb.velocity        = controller.velocity;
     rb.angularVelocity = controller.angularVelocity;
     RemoveFixedJointFromController(controller);
 }
예제 #3
0
    public override void OnTriggerWasReleased(RWVR_InteractionController controller)
    {
        base.OnTriggerWasReleased(controller);

        if (hideControllerModelOnGrab)
        {
            controller.ShowControllerModel();
        }
        if (name == "dongwu (1)" || name == "zhiwu (1)")
        {
            RemoveFixedJointFromController(controller);
            ActivateRotate();
        }
        else
        {
            rb.velocity        = controller.velocity;
            rb.angularVelocity = controller.angularVelocity;

            RemoveFixedJointFromController(controller);
        }
    }