public SWIGTYPE_p_btCollisionShape getChildShape(int index) { IntPtr cPtr = BulletCollisionPINVOKE.btCompoundShape_getChildShape__SWIG_0(swigCPtr, index); SWIGTYPE_p_btCollisionShape ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btCollisionShape(cPtr, false); return(ret); }
public SWIGTYPE_p_btCollisionShape getCollisionShape() { IntPtr cPtr = BulletDynamicsPINVOKE.btRigidBody_getCollisionShape__SWIG_0(swigCPtr); SWIGTYPE_p_btCollisionShape ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btCollisionShape(cPtr, false); return(ret); }
public btRigidBody(float mass, SWIGTYPE_p_btMotionState motionState, SWIGTYPE_p_btCollisionShape collisionShape, SWIGTYPE_p_btVector3 localInertia) : this(BulletDynamicsPINVOKE.new_btRigidBody__SWIG_1(mass, SWIGTYPE_p_btMotionState.getCPtr(motionState), SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape), SWIGTYPE_p_btVector3.getCPtr(localInertia)), true) { if (BulletDynamicsPINVOKE.SWIGPendingException.Pending) { throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve(); } }
public void addChildShape(SWIGTYPE_p_btTransform localTransform, SWIGTYPE_p_btCollisionShape shape) { BulletCollisionPINVOKE.btCompoundShape_addChildShape(swigCPtr, SWIGTYPE_p_btTransform.getCPtr(localTransform), SWIGTYPE_p_btCollisionShape.getCPtr(shape)); if (BulletCollisionPINVOKE.SWIGPendingException.Pending) { throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve(); } }
public virtual void debugDrawObject(SWIGTYPE_p_btTransform worldTransform, SWIGTYPE_p_btCollisionShape shape, SWIGTYPE_p_btVector3 color) { BulletCollisionPINVOKE.btCollisionWorld_debugDrawObject(swigCPtr, SWIGTYPE_p_btTransform.getCPtr(worldTransform), SWIGTYPE_p_btCollisionShape.getCPtr(shape), SWIGTYPE_p_btVector3.getCPtr(color)); if (BulletCollisionPINVOKE.SWIGPendingException.Pending) { throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve(); } }
public float Evaluate(SWIGTYPE_p_btVector3 x, SWIGTYPE_p_btCollisionShape shape, SWIGTYPE_p_btVector3 normal, float margin) { float ret = BulletSoftBodyPINVOKE.btSparseSdf3_Evaluate(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(x), SWIGTYPE_p_btCollisionShape.getCPtr(shape), SWIGTYPE_p_btVector3.getCPtr(normal), margin); if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) { throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static float DistanceToShape(SWIGTYPE_p_btVector3 x, SWIGTYPE_p_btCollisionShape shape) { float ret = BulletSoftBodyPINVOKE.btSparseSdf3_DistanceToShape(SWIGTYPE_p_btVector3.getCPtr(x), SWIGTYPE_p_btCollisionShape.getCPtr(shape)); if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) { throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual void Dispose() { lock(this) { if (swigCPtr.Handle != IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; BulletCollisionPINVOKE.delete_btBvhTriangleMeshShape(swigCPtr); } swigCPtr = new HandleRef(null, IntPtr.Zero); swigWrapPtr = new SWIGTYPE_p_btCollisionShape(IntPtr.Zero, true); } GC.SuppressFinalize(this); } }
public btRigidBodyConstructionInfo(float mass, SWIGTYPE_p_btMotionState motionState, SWIGTYPE_p_btCollisionShape collisionShape) : this(BulletDynamicsPINVOKE.new_btRigidBodyConstructionInfo__SWIG_1(mass, SWIGTYPE_p_btMotionState.getCPtr(motionState), SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape)), true) { }
public virtual void setCollisionShape(SWIGTYPE_p_btCollisionShape collisionShape) { BulletCollisionPINVOKE.btCollisionObject_setCollisionShape(swigCPtr, SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape)); }
public btTriIndex(int partId, int triangleIndex, SWIGTYPE_p_btCollisionShape shape) : this(BulletSoftBodyPINVOKE.new_btTriIndex(partId, triangleIndex, SWIGTYPE_p_btCollisionShape.getCPtr(shape)), true) { }
public virtual void debugDrawObject(SWIGTYPE_p_btTransform worldTransform, SWIGTYPE_p_btCollisionShape shape, SWIGTYPE_p_btVector3 color) { BulletCollisionPINVOKE.btCollisionWorld_debugDrawObject(swigCPtr, SWIGTYPE_p_btTransform.getCPtr(worldTransform), SWIGTYPE_p_btCollisionShape.getCPtr(shape), SWIGTYPE_p_btVector3.getCPtr(color)); if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve(); }
public virtual void removeChildShape(SWIGTYPE_p_btCollisionShape shape) { BulletCollisionPINVOKE.btCompoundShape_removeChildShape(swigCPtr, SWIGTYPE_p_btCollisionShape.getCPtr(shape)); }
public static void rayTestSingle(SWIGTYPE_p_btTransform rayFromTrans, SWIGTYPE_p_btTransform rayToTrans, btCollisionObject collisionObject, SWIGTYPE_p_btCollisionShape collisionShape, SWIGTYPE_p_btTransform colObjWorldTransform, SWIGTYPE_p_btCollisionWorld__RayResultCallback resultCallback) { BulletCollisionPINVOKE.btCollisionWorld_rayTestSingle(SWIGTYPE_p_btTransform.getCPtr(rayFromTrans), SWIGTYPE_p_btTransform.getCPtr(rayToTrans), btCollisionObject.getCPtr(collisionObject), SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape), SWIGTYPE_p_btTransform.getCPtr(colObjWorldTransform), SWIGTYPE_p_btCollisionWorld__RayResultCallback.getCPtr(resultCallback)); if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve(); }
public static float DistanceToShape(SWIGTYPE_p_btVector3 x, SWIGTYPE_p_btCollisionShape shape) { float ret = BulletSoftBodyPINVOKE.btSparseSdf3_DistanceToShape(SWIGTYPE_p_btVector3.getCPtr(x), SWIGTYPE_p_btCollisionShape.getCPtr(shape)); if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve(); return ret; }
internal btBvhTriangleMeshShape(IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new HandleRef(this, cPtr); swigWrapPtr = new SWIGTYPE_p_btCollisionShape(cPtr, true); }
internal static HandleRef getCPtr(SWIGTYPE_p_btCollisionShape obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
public int RemoveReferences(SWIGTYPE_p_btCollisionShape pcs) { int ret = BulletSoftBodyPINVOKE.btSparseSdf3_RemoveReferences(swigCPtr, SWIGTYPE_p_btCollisionShape.getCPtr(pcs)); return(ret); }
public static void objectQuerySingle(SWIGTYPE_p_btConvexShape castShape, SWIGTYPE_p_btTransform rayFromTrans, SWIGTYPE_p_btTransform rayToTrans, btCollisionObject collisionObject, SWIGTYPE_p_btCollisionShape collisionShape, SWIGTYPE_p_btTransform colObjWorldTransform, SWIGTYPE_p_btCollisionWorld__ConvexResultCallback resultCallback, float allowedPenetration) { BulletCollisionPINVOKE.btCollisionWorld_objectQuerySingle(SWIGTYPE_p_btConvexShape.getCPtr(castShape), SWIGTYPE_p_btTransform.getCPtr(rayFromTrans), SWIGTYPE_p_btTransform.getCPtr(rayToTrans), btCollisionObject.getCPtr(collisionObject), SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape), SWIGTYPE_p_btTransform.getCPtr(colObjWorldTransform), SWIGTYPE_p_btCollisionWorld__ConvexResultCallback.getCPtr(resultCallback), allowedPenetration); if (BulletCollisionPINVOKE.SWIGPendingException.Pending) { throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve(); } }
public static void rayTestSingle(SWIGTYPE_p_btTransform rayFromTrans, SWIGTYPE_p_btTransform rayToTrans, btCollisionObject collisionObject, SWIGTYPE_p_btCollisionShape collisionShape, SWIGTYPE_p_btTransform colObjWorldTransform, SWIGTYPE_p_btCollisionWorld__RayResultCallback resultCallback) { BulletCollisionPINVOKE.btCollisionWorld_rayTestSingle(SWIGTYPE_p_btTransform.getCPtr(rayFromTrans), SWIGTYPE_p_btTransform.getCPtr(rayToTrans), btCollisionObject.getCPtr(collisionObject), SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape), SWIGTYPE_p_btTransform.getCPtr(colObjWorldTransform), SWIGTYPE_p_btCollisionWorld__RayResultCallback.getCPtr(resultCallback)); if (BulletCollisionPINVOKE.SWIGPendingException.Pending) { throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve(); } }
public static uint Hash(int x, int y, int z, SWIGTYPE_p_btCollisionShape shape) { uint ret = BulletSoftBodyPINVOKE.btSparseSdf3_Hash(x, y, z, SWIGTYPE_p_btCollisionShape.getCPtr(shape)); return ret; }
internal static HandleRef getCPtr(SWIGTYPE_p_btCollisionShape obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
public btRigidBodyConstructionInfo(float mass, SWIGTYPE_p_btMotionState motionState, SWIGTYPE_p_btCollisionShape collisionShape, SWIGTYPE_p_btVector3 localInertia) : this(BulletDynamicsPINVOKE.new_btRigidBodyConstructionInfo__SWIG_0(mass, SWIGTYPE_p_btMotionState.getCPtr(motionState), SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape), SWIGTYPE_p_btVector3.getCPtr(localInertia)), true) { if (BulletDynamicsPINVOKE.SWIGPendingException.Pending) throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve(); }
public float Evaluate(SWIGTYPE_p_btVector3 x, SWIGTYPE_p_btCollisionShape shape, SWIGTYPE_p_btVector3 normal, float margin) { float ret = BulletSoftBodyPINVOKE.btSparseSdf3_Evaluate(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(x), SWIGTYPE_p_btCollisionShape.getCPtr(shape), SWIGTYPE_p_btVector3.getCPtr(normal), margin); if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public virtual void setCollisionShape(SWIGTYPE_p_btCollisionShape collisionShape) { BulletSoftBodyPINVOKE.btSoftBody_setCollisionShape(swigCPtr, SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape)); }
public static void objectQuerySingle(SWIGTYPE_p_btConvexShape castShape, SWIGTYPE_p_btTransform rayFromTrans, SWIGTYPE_p_btTransform rayToTrans, btCollisionObject collisionObject, SWIGTYPE_p_btCollisionShape collisionShape, SWIGTYPE_p_btTransform colObjWorldTransform, SWIGTYPE_p_btCollisionWorld__ConvexResultCallback resultCallback, float allowedPenetration) { BulletCollisionPINVOKE.btCollisionWorld_objectQuerySingle(SWIGTYPE_p_btConvexShape.getCPtr(castShape), SWIGTYPE_p_btTransform.getCPtr(rayFromTrans), SWIGTYPE_p_btTransform.getCPtr(rayToTrans), btCollisionObject.getCPtr(collisionObject), SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape), SWIGTYPE_p_btTransform.getCPtr(colObjWorldTransform), SWIGTYPE_p_btCollisionWorld__ConvexResultCallback.getCPtr(resultCallback), allowedPenetration); if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve(); }
public int RemoveReferences(SWIGTYPE_p_btCollisionShape pcs) { int ret = BulletSoftBodyPINVOKE.btSparseSdf3_RemoveReferences(swigCPtr, SWIGTYPE_p_btCollisionShape.getCPtr(pcs)); return ret; }
internal btStaticPlaneShape(IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new HandleRef(this, cPtr); swigWrapPtr = new SWIGTYPE_p_btCollisionShape(cPtr, true); }
public void addChildShape(SWIGTYPE_p_btTransform localTransform, SWIGTYPE_p_btCollisionShape shape) { BulletCollisionPINVOKE.btCompoundShape_addChildShape(swigCPtr, SWIGTYPE_p_btTransform.getCPtr(localTransform), SWIGTYPE_p_btCollisionShape.getCPtr(shape)); if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve(); }
public static uint Hash(int x, int y, int z, SWIGTYPE_p_btCollisionShape shape) { uint ret = BulletSoftBodyPINVOKE.btSparseSdf3_Hash(x, y, z, SWIGTYPE_p_btCollisionShape.getCPtr(shape)); return(ret); }