Skip to content

Commit

Permalink
Fixed issues with boolean return types and c++
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Petrantoni committed Jul 26, 2016
1 parent 0108f2a commit 22af6df
Show file tree
Hide file tree
Showing 31 changed files with 138 additions and 16 deletions.
9 changes: 8 additions & 1 deletion src/BulletSharpPInvoke/Collision/BoxCollision.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,14 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btAABB_appy_transform_trans_cache(IntPtr obj, IntPtr trans);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btAABB_collide_plane(IntPtr obj, [In] ref Vector4 plane);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btAABB_collide_ray(IntPtr obj, [In] ref Vector3 vorigin, [In] ref Vector3 vdir);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern bool btAABB_collide_triangle_exact(IntPtr obj, [In] ref Vector3 p1, [In] ref Vector3 p2, [In] ref Vector3 p3, [In] ref Vector4 triangle_plane);
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btAABB_collide_triangle_exact(IntPtr obj, [In] ref Vector3 p1, [In] ref Vector3 p2, [In] ref Vector3 p3, [In] ref Vector4 triangle_plane);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btAABB_copy_with_margin(IntPtr obj, IntPtr other, float margin);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
Expand All @@ -312,6 +315,7 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btAABB_getMin(IntPtr obj, [Out] out Vector3 value);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btAABB_has_collision(IntPtr obj, IntPtr other);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btAABB_increment_margin(IntPtr obj, float margin);
Expand All @@ -320,10 +324,13 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btAABB_merge(IntPtr obj, IntPtr box);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btAABB_overlapping_trans_cache(IntPtr obj, IntPtr box, IntPtr transcache, bool fulltest);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btAABB_overlapping_trans_conservative(IntPtr obj, IntPtr box, [In] ref Matrix trans1_to_0);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btAABB_overlapping_trans_conservative2(IntPtr obj, IntPtr box, IntPtr trans1_to_0);
//[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
//static extern eBT_PLANE_INTERSECTION_TYPE btAABB_plane_classify(IntPtr obj, IntPtr plane);
Expand Down
1 change: 1 addition & 0 deletions src/BulletSharpPInvoke/Collision/BroadphaseInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ protected virtual void Dispose(bool disposing)
}

[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btBroadphaseAabbCallback_process(IntPtr obj, IntPtr proxy);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btBroadphaseAabbCallback_delete(IntPtr obj);
Expand Down
8 changes: 8 additions & 0 deletions src/BulletSharpPInvoke/Collision/BroadphaseProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,20 +248,28 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern int btBroadphaseProxy_getUniqueId(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btBroadphaseProxy_isCompound(int proxyType);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btBroadphaseProxy_isConcave(int proxyType);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btBroadphaseProxy_isConvex(int proxyType);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btBroadphaseProxy_isConvex2d(int proxyType);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btBroadphaseProxy_isInfinite(int proxyType);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btBroadphaseProxy_isNonMoving(int proxyType);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btBroadphaseProxy_isPolyhedral(int proxyType);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btBroadphaseProxy_isSoftBody(int proxyType);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btBroadphaseProxy_setAabbMax(IntPtr obj, [In] ref Vector3 value);
Expand Down
1 change: 1 addition & 0 deletions src/BulletSharpPInvoke/Collision/CollisionCreateFunc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern IntPtr btCollisionAlgorithmCreateFunc_CreateCollisionAlgorithm(IntPtr obj, IntPtr __unnamed0, IntPtr body0Wrap, IntPtr body1Wrap);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionAlgorithmCreateFunc_getSwapped(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btCollisionAlgorithmCreateFunc_setSwapped(IntPtr obj, bool value);
Expand Down
8 changes: 8 additions & 0 deletions src/BulletSharpPInvoke/Collision/CollisionShape.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,20 +230,28 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern IntPtr btCollisionShape_getUserPointer(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionShape_isCompound(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionShape_isConcave(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionShape_isConvex(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionShape_isConvex2d(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionShape_isInfinite(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionShape_isNonMoving(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionShape_isPolyhedral(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionShape_isSoftBody(IntPtr obj);
//[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
//static extern IntPtr btCollisionShape_serialize(IntPtr obj, IntPtr dataBuffer, IntPtr serializer);
Expand Down
6 changes: 6 additions & 0 deletions src/BulletSharpPInvoke/Collision/CollisionWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,10 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern uint btCollisionWorld_RayResultCallback_getFlags(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionWorld_RayResultCallback_hasHit(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionWorld_RayResultCallback_needsCollision(IntPtr obj, IntPtr proxy0);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btCollisionWorld_RayResultCallback_setClosestHitFraction(IntPtr obj, float value);
Expand Down Expand Up @@ -609,8 +611,10 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern short btCollisionWorld_ConvexResultCallback_getCollisionFilterMask(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionWorld_ConvexResultCallback_hasHit(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionWorld_ConvexResultCallback_needsCollision(IntPtr obj, IntPtr proxy0);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btCollisionWorld_ConvexResultCallback_setClosestHitFraction(IntPtr obj, float value);
Expand Down Expand Up @@ -884,6 +888,7 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern IntPtr btCollisionWorld_ContactResultCallbackWrapper_new(IntPtr addSingleResult, IntPtr needsCollision);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionWorld_ContactResultCallbackWrapper_needsCollision(IntPtr obj, IntPtr proxy0);
}

Expand Down Expand Up @@ -1134,6 +1139,7 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern IntPtr btCollisionWorld_getDispatchInfo(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btCollisionWorld_getForceUpdateAllAabbs(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern int btCollisionWorld_getNumCollisionObjects(IntPtr obj);
Expand Down
1 change: 1 addition & 0 deletions src/BulletSharpPInvoke/Collision/ConvexPolyhedron.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btConvexPolyhedron_setRadius(IntPtr obj, float value);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btConvexPolyhedron_testContainment(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btConvexPolyhedron_delete(IntPtr obj);
Expand Down
3 changes: 3 additions & 0 deletions src/BulletSharpPInvoke/Collision/DbvtBroadphase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ public float VelocityPrediction
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern int btDbvtBroadphase_getCupdates(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btDbvtBroadphase_getDeferedcollide(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern int btDbvtBroadphase_getDupdates(IntPtr obj);
Expand All @@ -231,6 +232,7 @@ public float VelocityPrediction
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern int btDbvtBroadphase_getGid(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btDbvtBroadphase_getNeedcleanup(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern int btDbvtBroadphase_getNewpairs(IntPtr obj);
Expand All @@ -241,6 +243,7 @@ public float VelocityPrediction
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern float btDbvtBroadphase_getPrediction(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btDbvtBroadphase_getReleasepaircache(IntPtr obj);

[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
Expand Down
7 changes: 7 additions & 0 deletions src/BulletSharpPInvoke/Collision/Dispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern int btDispatcherInfo_getDispatchFunc(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btDispatcherInfo_getEnableSatConvex(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btDispatcherInfo_getEnableSPU(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern int btDispatcherInfo_getStepCount(IntPtr obj);
Expand All @@ -136,10 +138,13 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern float btDispatcherInfo_getTimeStep(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btDispatcherInfo_getUseContinuous(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btDispatcherInfo_getUseConvexConservativeDistanceUtil(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btDispatcherInfo_getUseEpa(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btDispatcherInfo_setAllowedCcdPenetration(IntPtr obj, float value);
Expand Down Expand Up @@ -294,8 +299,10 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern int btDispatcher_getNumManifolds(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btDispatcher_needsCollision(IntPtr obj, IntPtr body0, IntPtr body1);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btDispatcher_needsResponse(IntPtr obj, IntPtr body0, IntPtr body1);

[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
Expand Down
1 change: 1 addition & 0 deletions src/BulletSharpPInvoke/Collision/ManifoldPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ protected virtual void Dispose(bool disposing)
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btManifoldPoint_getLateralFrictionDir2(IntPtr obj, [Out] out Vector3 value);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btManifoldPoint_getLateralFrictionInitialized(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern int btManifoldPoint_getLifeTime(IntPtr obj);
Expand Down
5 changes: 5 additions & 0 deletions src/BulletSharpPInvoke/Collision/OverlappingPairCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ protected virtual void Dispose(bool disposing)
}

[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btOverlapCallback_processOverlap(IntPtr obj, IntPtr pair);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btOverlapCallback_delete(IntPtr obj);
Expand Down Expand Up @@ -80,6 +81,7 @@ protected virtual void Dispose(bool disposing)
}

[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btOverlapFilterCallback_needBroadphaseCollision(IntPtr obj, IntPtr proxy0, IntPtr proxy1);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btOverlapFilterCallback_delete(IntPtr obj);
Expand Down Expand Up @@ -167,6 +169,7 @@ public AlignedBroadphasePairArray OverlappingPairArray
static extern IntPtr btOverlappingPairCache_getOverlappingPairArray(IntPtr obj);

[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btOverlappingPairCache_hasDeferredRemoval(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btOverlappingPairCache_processAllOverlappingPairs(IntPtr obj, IntPtr __unnamed0, IntPtr dispatcher);
Expand Down Expand Up @@ -212,6 +215,7 @@ public OverlapFilterCallback OverlapFilterCallback
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern IntPtr btHashedOverlappingPairCache_getOverlapFilterCallback(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btHashedOverlappingPairCache_needsBroadphaseCollision(IntPtr obj, IntPtr proxy0, IntPtr proxy1);
}

Expand Down Expand Up @@ -242,6 +246,7 @@ public OverlapFilterCallback OverlapFilterCallback
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern IntPtr btSortedOverlappingPairCache_getOverlapFilterCallback(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btSortedOverlappingPairCache_needsBroadphaseCollision(IntPtr obj, IntPtr proxy0, IntPtr proxy1);
}

Expand Down
1 change: 1 addition & 0 deletions src/BulletSharpPInvoke/Collision/PersistentManifold.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ public int NumContacts
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btPersistentManifold_setNumContacts(IntPtr obj, int cachedPoints);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btPersistentManifold_validContactDistance(IntPtr obj, IntPtr pt);

#if __iOS__
Expand Down
1 change: 1 addition & 0 deletions src/BulletSharpPInvoke/Collision/PointCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public Vector3 PointInWorld
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern float btPointCollector_getDistance(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool btPointCollector_getHasResult(IntPtr obj);
[DllImport(Native.Dll, CallingConvention = Native.Conv), SuppressUnmanagedCodeSecurity]
static extern void btPointCollector_getNormalOnBInWorld(IntPtr obj, [Out] out Vector3 value);
Expand Down
Loading

0 comments on commit 22af6df

Please sign in to comment.