public void LinkToParent(PhysicsBody2D parent, float softness = 0, float bias = 0) { var pinJoint = new PinJoint2D() { NodeA = parent.GetPath(), NodeB = GetPath(), Softness = softness, Bias = bias }; parent.AddChild(pinJoint); }
public void LinkToParent(PhysicsBody2D parent, float softness = 0, float bias = 0) { var pinJoint = new PinJoint2D() { NodeA = parent.GetPath(), NodeB = GetPath(), Softness = softness, Bias = bias }; parent.AddChild(pinJoint); }