public static PhysicalSupportTools PhysicalDragTo(GameObject o, Hashtable table) { PhysicalDrag pd = new PhysicalDrag(); pd.Init(table); return(AddSupportTools(o, PhysicalSupportType.PhysicalDrag, pd)); }
public static PhysicalSupportTools PhysicalDragTo(GameObject o, float velocityDrag, float angularVelocityDrag) { if (o.rigidbody == null) { Debug.LogError("can not found the rigidbody at the gameobject : " + o); return(null); } PhysicalDrag pd = new PhysicalDrag(); pd.Init(Table("Rigidbody", o.rigidbody, "VelocityDrag", velocityDrag, "AngularVelocityDrag", angularVelocityDrag)); return(AddSupportTools(o, PhysicalSupportType.PhysicalDrag, pd)); }
public static PhysicalSupportTools PhysicalDragTo(GameObject o, float velocityDrag, float angularVelocityDrag) { if(o.rigidbody == null) { Debug.LogError("can not found the rigidbody at the gameobject : " + o); return null; } PhysicalDrag pd = new PhysicalDrag(); pd.Init(Table("Rigidbody", o.rigidbody, "VelocityDrag", velocityDrag, "AngularVelocityDrag", angularVelocityDrag)); return AddSupportTools(o, PhysicalSupportType.PhysicalDrag, pd); }
public static PhysicalSupportTools PhysicalDragTo(GameObject o, Hashtable table) { PhysicalDrag pd = new PhysicalDrag(); pd.Init(table); return AddSupportTools(o, PhysicalSupportType.PhysicalDrag, pd); }