private void GrabEnd() { holdJoint?.Remove(); holdJoint = null; if (HeldBody.IsValid()) { HeldBody.AutoSleep = true; } if (HeldEntity.IsValid()) { Client?.Pvs.Remove(HeldEntity); } HeldBody = null; HeldRot = Rotation.Identity; HeldEntity = null; }
private void GrabEnd() { holdJoint?.Remove(); holdJoint = null; velJoint?.Remove(); velJoint = null; if (heldBody.IsValid()) { heldBody.AutoSleep = true; } Client?.Pvs.Remove(GrabbedEntity); heldBody = null; GrabbedEntity = null; grabbing = false; }