本文整理汇总了C#中SWIGTYPE_p_btVector3类的典型用法代码示例。如果您正苦于以下问题:C# SWIGTYPE_p_btVector3类的具体用法?C# SWIGTYPE_p_btVector3怎么用?C# SWIGTYPE_p_btVector3使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SWIGTYPE_p_btVector3类属于命名空间,在下文中一共展示了SWIGTYPE_p_btVector3类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: castRay
public virtual SWIGTYPE_p_void castRay(SWIGTYPE_p_btVector3 from, SWIGTYPE_p_btVector3 to, btVehicleRaycasterResult result)
{
IntPtr cPtr = BulletDynamicsPINVOKE.btDefaultVehicleRaycaster_castRay(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(from), SWIGTYPE_p_btVector3.getCPtr(to), btVehicleRaycasterResult.getCPtr(result));
SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
if (BulletDynamicsPINVOKE.SWIGPendingException.Pending) throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
示例2: createProxy
public virtual SWIGTYPE_p_btBroadphaseProxy createProxy(SWIGTYPE_p_btVector3 aabbMin, SWIGTYPE_p_btVector3 aabbMax, int shapeType, SWIGTYPE_p_void userPtr, short collisionFilterGroup, short collisionFilterMask, SWIGTYPE_p_btDispatcher dispatcher, SWIGTYPE_p_void multiSapProxy)
{
IntPtr cPtr = BulletCollisionPINVOKE.btSimpleBroadphase_createProxy(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(aabbMin), SWIGTYPE_p_btVector3.getCPtr(aabbMax), shapeType, SWIGTYPE_p_void.getCPtr(userPtr), collisionFilterGroup, collisionFilterMask, SWIGTYPE_p_btDispatcher.getCPtr(dispatcher), SWIGTYPE_p_void.getCPtr(multiSapProxy));
SWIGTYPE_p_btBroadphaseProxy ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btBroadphaseProxy(cPtr, false);
if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
示例3: GetObjectFromSwigPtr
// convert swigtype to object , linyuan add
public static btVector3 GetObjectFromSwigPtr(SWIGTYPE_p_btVector3 ptr)
{
HandleRef handle = SWIGTYPE_p_btVector3.getCPtr(ptr);
if (handle.Wrapper == null || handle.Handle == IntPtr.Zero)
{
return null;
}
return new btVector3(handle.Handle, false);
}
示例4: btBvhTriangleMeshShape
public btBvhTriangleMeshShape(SWIGTYPE_p_btStridingMeshInterface meshInterface, bool useQuantizedAabbCompression, SWIGTYPE_p_btVector3 bvhAabbMin, SWIGTYPE_p_btVector3 bvhAabbMax)
: this(BulletCollisionPINVOKE.new_btBvhTriangleMeshShape__SWIG_3(SWIGTYPE_p_btStridingMeshInterface.getCPtr(meshInterface), useQuantizedAabbCompression, SWIGTYPE_p_btVector3.getCPtr(bvhAabbMin), SWIGTYPE_p_btVector3.getCPtr(bvhAabbMax)), true)
{
if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
}
示例5: setLocalScaling
public virtual void setLocalScaling(SWIGTYPE_p_btVector3 scaling)
{
BulletCollisionPINVOKE.btBvhTriangleMeshShape_setLocalScaling(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(scaling));
if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
}
示例6: processAllTriangles
public virtual void processAllTriangles(SWIGTYPE_p_btTriangleCallback callback, SWIGTYPE_p_btVector3 aabbMin, SWIGTYPE_p_btVector3 aabbMax)
{
BulletCollisionPINVOKE.btBvhTriangleMeshShape_processAllTriangles(swigCPtr, SWIGTYPE_p_btTriangleCallback.getCPtr(callback), SWIGTYPE_p_btVector3.getCPtr(aabbMin), SWIGTYPE_p_btVector3.getCPtr(aabbMax));
if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
}
示例7: performConvexcast
public void performConvexcast(SWIGTYPE_p_btTriangleCallback callback, SWIGTYPE_p_btVector3 boxSource, SWIGTYPE_p_btVector3 boxTarget, SWIGTYPE_p_btVector3 boxMin, SWIGTYPE_p_btVector3 boxMax)
{
BulletCollisionPINVOKE.btBvhTriangleMeshShape_performConvexcast(swigCPtr, SWIGTYPE_p_btTriangleCallback.getCPtr(callback), SWIGTYPE_p_btVector3.getCPtr(boxSource), SWIGTYPE_p_btVector3.getCPtr(boxTarget), SWIGTYPE_p_btVector3.getCPtr(boxMin), SWIGTYPE_p_btVector3.getCPtr(boxMax));
if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
}
示例8: setAxis
public void setAxis(SWIGTYPE_p_btVector3 axis1, SWIGTYPE_p_btVector3 axis2)
{
BulletDynamicsPINVOKE.btGeneric6DofConstraint_setAxis(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(axis1), SWIGTYPE_p_btVector3.getCPtr(axis2));
if (BulletDynamicsPINVOKE.SWIGPendingException.Pending) throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
}
示例9: getInfo2NonVirtual
public void getInfo2NonVirtual(btConstraintInfo2 info, SWIGTYPE_p_btTransform transA, SWIGTYPE_p_btTransform transB, SWIGTYPE_p_btVector3 linVelA, SWIGTYPE_p_btVector3 linVelB, SWIGTYPE_p_btVector3 angVelA, SWIGTYPE_p_btVector3 angVelB)
{
BulletDynamicsPINVOKE.btGeneric6DofConstraint_getInfo2NonVirtual(swigCPtr, btConstraintInfo2.getCPtr(info), SWIGTYPE_p_btTransform.getCPtr(transA), SWIGTYPE_p_btTransform.getCPtr(transB), SWIGTYPE_p_btVector3.getCPtr(linVelA), SWIGTYPE_p_btVector3.getCPtr(linVelB), SWIGTYPE_p_btVector3.getCPtr(angVelA), SWIGTYPE_p_btVector3.getCPtr(angVelB));
if (BulletDynamicsPINVOKE.SWIGPendingException.Pending) throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
}
示例10: rayTest
public virtual void rayTest(SWIGTYPE_p_btVector3 rayFromWorld, SWIGTYPE_p_btVector3 rayToWorld, SWIGTYPE_p_btCollisionWorld__RayResultCallback resultCallback) {
BulletCollisionPINVOKE.btCollisionWorld_rayTest(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(rayFromWorld), SWIGTYPE_p_btVector3.getCPtr(rayToWorld), SWIGTYPE_p_btCollisionWorld__RayResultCallback.getCPtr(resultCallback));
if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
}
示例11: setAabbForceUpdate
public void setAabbForceUpdate(SWIGTYPE_p_btBroadphaseProxy absproxy, SWIGTYPE_p_btVector3 aabbMin, SWIGTYPE_p_btVector3 aabbMax, SWIGTYPE_p_btDispatcher arg3) {
BulletCollisionPINVOKE.btDbvtBroadphase_setAabbForceUpdate(swigCPtr, SWIGTYPE_p_btBroadphaseProxy.getCPtr(absproxy), SWIGTYPE_p_btVector3.getCPtr(aabbMin), SWIGTYPE_p_btVector3.getCPtr(aabbMax), SWIGTYPE_p_btDispatcher.getCPtr(arg3));
if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
}
示例12: getBroadphaseAabb
public virtual void getBroadphaseAabb(SWIGTYPE_p_btVector3 aabbMin, SWIGTYPE_p_btVector3 aabbMax) {
BulletCollisionPINVOKE.btDbvtBroadphase_getBroadphaseAabb(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(aabbMin), SWIGTYPE_p_btVector3.getCPtr(aabbMax));
if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
}
示例13: aabbTest
public virtual void aabbTest(SWIGTYPE_p_btVector3 aabbMin, SWIGTYPE_p_btVector3 aabbMax, SWIGTYPE_p_btBroadphaseAabbCallback callback) {
BulletCollisionPINVOKE.btDbvtBroadphase_aabbTest(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(aabbMin), SWIGTYPE_p_btVector3.getCPtr(aabbMax), SWIGTYPE_p_btBroadphaseAabbCallback.getCPtr(callback));
if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
}
示例14: rayTest
public virtual void rayTest(SWIGTYPE_p_btVector3 rayFrom, SWIGTYPE_p_btVector3 rayTo, SWIGTYPE_p_btBroadphaseRayCallback rayCallback) {
BulletCollisionPINVOKE.btDbvtBroadphase_rayTest__SWIG_2(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(rayFrom), SWIGTYPE_p_btVector3.getCPtr(rayTo), SWIGTYPE_p_btBroadphaseRayCallback.getCPtr(rayCallback));
if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
}
示例15: setAabb
public virtual void setAabb(SWIGTYPE_p_btBroadphaseProxy proxy, SWIGTYPE_p_btVector3 aabbMin, SWIGTYPE_p_btVector3 aabbMax, SWIGTYPE_p_btDispatcher dispatcher) {
BulletCollisionPINVOKE.btDbvtBroadphase_setAabb(swigCPtr, SWIGTYPE_p_btBroadphaseProxy.getCPtr(proxy), SWIGTYPE_p_btVector3.getCPtr(aabbMin), SWIGTYPE_p_btVector3.getCPtr(aabbMax), SWIGTYPE_p_btDispatcher.getCPtr(dispatcher));
if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
}