private void RemoveJointControl() { RemoveMetaElement(interactionJoint); interactionJoint = null; }
private void CreateJointControl(Vector2 mousePosition, T interactingBody) { interactionRigidBody.CollisionPolygon.TranslateTo(mousePosition); interactionJoint = new ElasticJoint(interactionElasticity, interactingBody, interactionRigidBody, mousePosition); AddMetaElement(interactionJoint); }