public void Create_Lock(string type, AgX_Primitive s_mod, AgX_Frame left) { //THIS IS NOT THE MIDDLE OF THE LOCK FRAME (frames are longer than sensors) joint = new agx.LockJoint(s_mod.GetAgxObject(), left.GetAgxObject(), (left.GetAgxObject().getPosition() + s_mod.GetAgxObject().getPosition()).Divide(2)); }
public void DistanceSensorLock(AgX_Primitive sm, AgX_Primitive ds, Vector3 lockPosition) { joint = new agx.LockJoint(sm.GetAgxObject(), ds.GetAgxObject(), Operations.ToAgxVec3(lockPosition)); joint.setEnableComputeForces(true); }
//Sensory module locks: public void Create_Lock(string type, AgX_Frame right, AgX_Primitive s_mod) { //Creates a joint with a specified middle position for the lockframe. //THIS IS NOT THE MIDDLE OF THE LOCK FRAME (frames are longer than sensors) joint = new agx.LockJoint(right.GetAgxObject(), s_mod.GetAgxObject(), (right.GetAgxObject().getPosition() + s_mod.GetAgxObject().getPosition()).Divide(2)); }