Exemplo n.º 1
0
 public static void AddToAssembly(agx.Constraint joint)
 {
     if (robotAssembly == null)
     {
         robotAssembly = new agxSDK.Assembly();
     }
     robotAssembly.add(joint);
 }
Exemplo n.º 2
0
 public static void AddToSim()
 {
     if (robotAssembly == null)
     {
         robotAssembly = new agxSDK.Assembly();
     }
     Agx_Simulation.sim_Instance.add(robotAssembly);
 }
Exemplo n.º 3
0
        static agxSDK.Assembly robotAssembly;// = new agxSDK.Assembly();


        public static void AddToAssembly(agx.RigidBody body)
        {
            if (robotAssembly == null)
            {
                robotAssembly = new agxSDK.Assembly();
            }
            robotAssembly.add(body);
        }
Exemplo n.º 4
0
 public static void RemoveFromSim()
 {
     if (robotAssembly != null)
     {
         Agx_Simulation.sim_Instance.remove(robotAssembly);
         //robotAssembly.Dispose();
         robotAssembly = null;
     }
     //else UnityEngine.Debug.Log("failed)");
 }
Exemplo n.º 5
0
 public static void SetToNull()
 {
     robotAssembly.Dispose();
     robotAssembly = null;
 }