// Use this for initialization public void Start() { if (started) { return; } started = true; if (other) { if (!other.Started) { other.Start(); } B2DJoint[] joints = other.GetComponents <B2DJoint>(); foreach (B2DJoint j in joints) { j.Start(); } } if (!body.Started) { body.Start(); } joint = Init(); }
// Use this for initialization public void Start() { if (started) { return; } started = true; if (!body.Started) { body.Start(); } ShapeDef def = new ShapeDef(density); def.restitution = restitution; def.friction = friction; def.sensor = sensor; def.catogoryBits = catogoryBits; def.maskBits = def.maskBits; def.groupIndex = def.groupIndex; fixture = Create(def); }