Example #1
0
        public unsafe void GetRuntimeObjects(Tag physTag, out int numOfObjects, out RuntimeObject[] runtimeObjects)
        {
            runtimeObjects = null;
            void ***voidPtr = null;

            ExAskRuntimeObjects(this.m_pSelf, physTag, out numOfObjects, out voidPtr);
            if (numOfObjects > 0)
            {
                runtimeObjects = new RuntimeObject[numOfObjects];
                for (int i = 0; i < numOfObjects; i++)
                {
                    IntPtr pItem = *((IntPtr *)(voidPtr + i));
                    runtimeObjects[i] = RuntimeObject.FromPtr(pItem);
                }
                SM_free_area((void *)voidPtr);
            }
        }
Example #2
0
 public void Connect(string strName, out PositionControl item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x7d00)) as PositionControl;
 }
Example #3
0
 public RuntimeObject GetRuntimeObject(Tag physTag)
 {
     return(RuntimeObject.FromPtr(ExAskRuntimeObject(this.m_pSelf, physTag)));
 }
Example #4
0
 public void Connect(string strName, out HingeJoint item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x526c)) as HingeJoint;
 }
Example #5
0
 public void Connect(string strName, out GearCoupling item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x814c)) as GearCoupling;
 }
Example #6
0
 public void Connect(string strName, out ExternalConnection item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x15f90)) as ExternalConnection;
 }
Example #7
0
 public void Connect(string strName, out CylindricalJoint item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x5334)) as CylindricalJoint;
 }
Example #8
0
 public void Connect(string strName, out CollisionSensor item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x32c8)) as CollisionSensor;
 }
Example #9
0
 public void Connect(string strName, out SignalAdapter item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x186a0)) as SignalAdapter;
 }
Example #10
0
 public void Connect(string strName, out AngularSpring item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x65f4)) as AngularSpring;
 }
Example #11
0
 public void Connect(string strName, out RuntimeParameters item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x1b198)) as RuntimeParameters;
 }
Example #12
0
 public void Connect(string strName, out RuntimeObject item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x3e8));
 }
Example #13
0
 public void Connect(string strName, out RigidBody item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x2af8)) as RigidBody;
 }
Example #14
0
 public void Connect(string strName, out ProxyObject item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x1adb0)) as ProxyObject;
 }
Example #15
0
 public void Connect(string strName, out PreventCollision item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x8ca0)) as PreventCollision;
 }
Example #16
0
 public void Connect(string strName, out CollisionBody item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x2ee0)) as CollisionBody;
 }
Example #17
0
 public void Connect(string strName, out CollisionMaterial item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x9c40)) as CollisionMaterial;
 }
Example #18
0
 public void Connect(string strName, out SourceBehavior item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x11558)) as SourceBehavior;
 }
Example #19
0
 public void Connect(string strName, out ComponentPart item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0xea60)) as ComponentPart;
 }
Example #20
0
 public void Connect(string strName, out SpeedControl item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x7918)) as SpeedControl;
 }
Example #21
0
 public void Connect(string strName, out ElecCamCoupling item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x8214)) as ElecCamCoupling;
 }
Example #22
0
 public void Connect(string strName, out SpringJoint item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x6590)) as SpringJoint;
 }
Example #23
0
 public void Connect(string strName, out FixedJoint item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x5dc0)) as FixedJoint;
 }
Example #24
0
 public void Connect(string strName, out TransportSurface item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0xc350)) as TransportSurface;
 }
Example #25
0
 public void Connect(string strName, out GraphControl item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x13c68)) as GraphControl;
 }
Example #26
0
 public void Connect(string strName, out BallJoint item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x61a8)) as BallJoint;
 }
Example #27
0
 public ComponentPart AskRoot()
 {
     return(RuntimeObject.FromPtr(ExAskRoot(this.m_pSelf)) as ComponentPart);
 }
Example #28
0
 public void Connect(string strName, out BreakingConstraint item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x84d0)) as BreakingConstraint;
 }
Example #29
0
 public void Connect(string strName, out ChangeMaterial item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x88b8)) as ChangeMaterial;
 }
Example #30
0
 public void Connect(string strName, out LinearSpring item)
 {
     item = RuntimeObject.FromPtr(ExGetProperty(this.m_pSelf, strName, 4, 0x6658)) as LinearSpring;
 }