예제 #1
0
 internal static HandleRef getCPtr(b2JointDef obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
예제 #2
0
파일: b2World.cs 프로젝트: vanoseva/Box2DCS
 public b2Joint CreateJoint(b2JointDef def)
 {
     IntPtr cPtr = Box2DPINVOKE.b2World_CreateJoint(swigCPtr, b2JointDef.getCPtr(def));
     b2Joint ret = (cPtr == IntPtr.Zero) ? null : new b2Joint(cPtr, false);
     return ret;
 }