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); }
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); } }