本文整理汇总了C#中BulletSharp.BroadphaseProxy类的典型用法代码示例。如果您正苦于以下问题:C# BroadphaseProxy类的具体用法?C# BroadphaseProxy怎么用?C# BroadphaseProxy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BroadphaseProxy类属于BulletSharp命名空间,在下文中一共展示了BroadphaseProxy类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NeedsCollision
//! If you don't want to consider collisions where the bodies are joined by a constraint, override NeedsCollision:
/*! However, if you use a CollisionObject for #body instead of a RigidBody,
* then this is unnecessary—CheckCollideWithOverride isn't available */
public override bool NeedsCollision(BroadphaseProxy proxy)
{
// superclass will check CollisionFilterGroup and CollisionFilterMask
if (!base.NeedsCollision(proxy))
return false;
// if passed filters, may also want to avoid contacts between constraints
return body.CheckCollideWithOverride(proxy.ClientObject as CollisionObject);
}
示例2: GetAabb
public unsafe static void GetAabb(this BroadphaseInterface obj, BroadphaseProxy proxy, out OpenTK.Vector3 aabbMin, out OpenTK.Vector3 aabbMax)
{
fixed (OpenTK.Vector3* aabbMinPtr = &aabbMin)
{
fixed (OpenTK.Vector3* aabbMaxPtr = &aabbMax)
{
obj.GetAabb(proxy, out *(BulletSharp.Math.Vector3*)aabbMinPtr, out *(BulletSharp.Math.Vector3*)aabbMaxPtr);
}
}
}
示例3: SetAabbForceUpdate
public unsafe static void SetAabbForceUpdate(this DbvtBroadphase obj, BroadphaseProxy absproxy, ref OpenTK.Vector3 aabbMin, ref OpenTK.Vector3 aabbMax, Dispatcher __unnamed3)
{
fixed (OpenTK.Vector3* aabbMinPtr = &aabbMin)
{
fixed (OpenTK.Vector3* aabbMaxPtr = &aabbMax)
{
obj.SetAabbForceUpdate(absproxy, ref *(BulletSharp.Math.Vector3*)aabbMinPtr, ref *(BulletSharp.Math.Vector3*)aabbMaxPtr, __unnamed3);
}
}
}
示例4: CleanProxyFromPairs
public void CleanProxyFromPairs(BroadphaseProxy proxy, Dispatcher dispatcher)
{
btOverlappingPairCache_cleanProxyFromPairs(_native, proxy._native, dispatcher._native);
}
示例5: RemoveOverlappingPairsContainingProxy
public override void RemoveOverlappingPairsContainingProxy(BroadphaseProxy proxy0, Dispatcher dispatcher)
{
btOverlappingPairCallback_removeOverlappingPairsContainingProxy(_native, proxy0._native, dispatcher._native);
}
示例6: AddOverlappingPair
public override BroadphasePair AddOverlappingPair(BroadphaseProxy proxy0, BroadphaseProxy proxy1)
{
return new BroadphasePair(btOverlappingPairCallback_addOverlappingPair(_native, proxy0._native, proxy1._native));
}
示例7: FindPair
public BroadphasePair FindPair(BroadphaseProxy proxy0, BroadphaseProxy proxy1)
{
return new BroadphasePair(btOverlappingPairCache_findPair(_native, proxy0._native, proxy1._native));
}
示例8: UnQuantize
void UnQuantize(BroadphaseProxy proxy, Vector3 aabbMin, Vector3 aabbMax)
{
btAxisSweep3_unQuantize(_native, proxy._native, out aabbMin, out aabbMax);
}
示例9: SetAabb
public void SetAabb(BroadphaseProxy proxy, Vector3 aabbMin, Vector3 aabbMax, Dispatcher dispatcher)
{
SetAabbRef(proxy, ref aabbMin, ref aabbMax, dispatcher);
}
示例10: GetAabb
public void GetAabb(BroadphaseProxy proxy, out Vector3 aabbMin, out Vector3 aabbMax)
{
btBroadphaseInterface_getAabb(_native, proxy._native, out aabbMin, out aabbMax);
}
示例11: DestroyProxy
public void DestroyProxy(BroadphaseProxy proxy, Dispatcher dispatcher)
{
btBroadphaseInterface_destroyProxy(_native, proxy._native, dispatcher._native);
}
示例12: SetNewBroadphaseProxy
public void SetNewBroadphaseProxy(BroadphaseProxy broadphaseProxy)
{
btRigidBody_setNewBroadphaseProxy(_native, broadphaseProxy._native);
}
示例13: RemoveOverlappingPairsContainingProxy
public abstract void RemoveOverlappingPairsContainingProxy(BroadphaseProxy proxy0, Dispatcher dispatcher);
示例14: RemoveOverlappingPair
public abstract IntPtr RemoveOverlappingPair(BroadphaseProxy proxy0, BroadphaseProxy proxy1, Dispatcher dispatcher);
示例15: OverlappingPairCallback
/*
protected OverlappingPairCallback()
{
_native = btOverlappingPairCallbackWrapper_new();
}
*/
public abstract BroadphasePair AddOverlappingPair(BroadphaseProxy proxy0, BroadphaseProxy proxy1);