• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# BulletSharp.Dispatcher类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中BulletSharp.Dispatcher的典型用法代码示例。如果您正苦于以下问题:C# Dispatcher类的具体用法?C# Dispatcher怎么用?C# Dispatcher使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Dispatcher类属于BulletSharp命名空间,在下文中一共展示了Dispatcher类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AddHandleRef

 public ushort AddHandleRef(ref Vector3 aabbMin, ref Vector3 aabbMax, IntPtr pOwner,
     short collisionFilterGroup, short collisionFilterMask,
     Dispatcher dispatcher, IntPtr multiSapProxy)
 {
     return btAxisSweep3_addHandle(_native, ref aabbMin, ref aabbMax, pOwner,
         collisionFilterGroup, collisionFilterMask, dispatcher._native, multiSapProxy);
 }
开发者ID:rhynodegreat,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:AxisSweep3.cs


示例2: CreateProxy

 public override BroadphaseProxy CreateProxy(ref Vector3 aabbMin,
     ref Vector3 aabbMax, int shapeType, IntPtr userPtr, short collisionFilterGroup,
     short collisionFilterMask, Dispatcher dispatcher, IntPtr multiSapProxy)
 {
     //throw new NotImplementedException();
     return new BroadphaseProxy(btBroadphaseInterface_createProxy(_native, ref aabbMin, ref aabbMax, shapeType, userPtr, collisionFilterGroup, collisionFilterMask, dispatcher._native, multiSapProxy));
 }
开发者ID:rhynodegreat,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:AxisSweep3.cs


示例3: BulletPhysicWorld

        public BulletPhysicWorld(Vector3 gravity,Dispatcher dispatcher, BroadphaseInterface pairCache, ConstraintSolver constraintSolver, CollisionConfiguration collisionConfiguration)
        {
            objs = new List<IPhysicObject>();
            ctns = new List<IPhysicConstraint>();

            world = new DiscreteDynamicsWorld(dispatcher, pairCache, constraintSolver, collisionConfiguration);
            world.Gravity = gravity;
        }
开发者ID:brunoduartec,项目名称:port-ploobsengine,代码行数:8,代码来源:BulletPhysicWorld.cs


示例4: DiscreteDynamicsWorld

        public DiscreteDynamicsWorld(Dispatcher dispatcher, BroadphaseInterface pairCache,
            ConstraintSolver constraintSolver, CollisionConfiguration collisionConfiguration)
            : base(btDiscreteDynamicsWorld_new(dispatcher != null ? dispatcher._native : IntPtr.Zero, pairCache != null ? pairCache._native : IntPtr.Zero,
				constraintSolver != null ? constraintSolver._native : IntPtr.Zero, collisionConfiguration != null ? collisionConfiguration._native : IntPtr.Zero))
        {
            _constraintSolver = constraintSolver;
            Dispatcher = dispatcher;
            Broadphase = pairCache;
        }
开发者ID:PowerOfCode,项目名称:BulletSharpPInvoke,代码行数:9,代码来源:DiscreteDynamicsWorld.cs


示例5: 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);
				}
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:10,代码来源:DbvtBroadphaseExtensions.cs


示例6: MultiBodyDynamicsWorld

        public MultiBodyDynamicsWorld(Dispatcher dispatcher, BroadphaseInterface pairCache, MultiBodyConstraintSolver constraintSolver, CollisionConfiguration collisionConfiguration)
            : base(btMultiBodyDynamicsWorld_new(dispatcher._native, pairCache._native, constraintSolver._native, collisionConfiguration._native))
        {
            _constraintSolver = constraintSolver;
            _dispatcher = dispatcher;
            _broadphase = pairCache;

            _bodies = new List<MultiBody>();
            _constraints = new List<MultiBodyConstraint>();
        }
开发者ID:RainsSoft,项目名称:BulletSharpPInvoke,代码行数:10,代码来源:MultiBodyDynamicsWorld.cs


示例7: CreateProxy

		public unsafe static BroadphaseProxy CreateProxy(this BroadphaseInterface obj, ref OpenTK.Vector3 aabbMin, ref OpenTK.Vector3 aabbMax, int shapeType, IntPtr userPtr, short collisionFilterGroup, short collisionFilterMask, Dispatcher dispatcher, IntPtr multiSapProxy)
		{
			fixed (OpenTK.Vector3* aabbMinPtr = &aabbMin)
			{
				fixed (OpenTK.Vector3* aabbMaxPtr = &aabbMax)
				{
					return obj.CreateProxy(ref *(BulletSharp.Math.Vector3*)aabbMinPtr, ref *(BulletSharp.Math.Vector3*)aabbMaxPtr, shapeType, userPtr, collisionFilterGroup, collisionFilterMask, dispatcher, multiSapProxy);
				}
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:10,代码来源:BroadphaseInterfaceExtensions.cs


示例8: PhysicsSimulator

        /// <summary>
        /// コンストラクター
        /// </summary>
        public PhysicsSimulator()
        {
            var cc = new DefaultCollisionConfiguration ();

            this.dispatcher = new CollisionDispatcher (cc);
            this.broadphase = new DbvtBroadphase ();
            this.solver = new SequentialImpulseConstraintSolver ();
            this.wld = new DiscreteDynamicsWorld (dispatcher, broadphase, solver, cc);

            this.wld.Gravity = new BulletSharp.Vector3 (0, -9.8f, 0);   // 重力は-Y方向
        }
开发者ID:weimingtom,项目名称:erica,代码行数:14,代码来源:PhysicsSimulator.cs


示例9: Awake

	void Awake ()
	{
		if (BtWorld.main == null || gameObject.tag.Equals ("main"))
			BtWorld.main = this;
		
		// TODO: expose in editor?
		broadphase = new BulletSharp.DbvtBroadphase ();
		collisionConfiguration = new BulletSharp.DefaultCollisionConfiguration ();
		dispatcher = new BulletSharp.CollisionDispatcher (collisionConfiguration);
		solver = new BulletSharp.SequentialImpulseConstraintSolver ();
		world = new BulletSharp.DiscreteDynamicsWorld (dispatcher, broadphase, solver, collisionConfiguration);
		
		world.Gravity = new BulletSharp.Vector3 (gravity.x, gravity.y, gravity.z);
		world.DebugDrawer = new UnityDebugDrawer ();
		world.DebugDrawer.DebugMode = BulletSharp.DebugDrawModes.None;
		foreach (BulletSharp.DebugDrawModes drawMode in debugDrawModes) {
			world.DebugDrawer.DebugMode |= drawMode;
		}
	}
开发者ID:franckmolto,项目名称:unity-bullet,代码行数:19,代码来源:BtWorld.cs


示例10: UpdateHandle

 void UpdateHandle(ushort handle, Vector3 aabbMin, Vector3 aabbMax, Dispatcher dispatcher)
 {
     btAxisSweep3_updateHandle(_native, handle, ref aabbMin, ref aabbMax, dispatcher._native);
 }
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:4,代码来源:AxisSweep3.cs


示例11: RemoveHandle

 void RemoveHandle(ushort handle, Dispatcher dispatcher)
 {
     btAxisSweep3_removeHandle(_native, handle, dispatcher._native);
 }
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:4,代码来源:AxisSweep3.cs


示例12: CleanProxyFromPairs

		public void CleanProxyFromPairs(BroadphaseProxy proxy, Dispatcher dispatcher)
		{
			btOverlappingPairCache_cleanProxyFromPairs(_native, proxy._native, dispatcher._native);
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:4,代码来源:OverlappingPairCache.cs


示例13: SortOverlappingPairs

		public void SortOverlappingPairs(Dispatcher dispatcher)
		{
			btOverlappingPairCache_sortOverlappingPairs(_native, dispatcher._native);
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:4,代码来源:OverlappingPairCache.cs


示例14: CollisionWorld

		public CollisionWorld(Dispatcher dispatcher, BroadphaseInterface broadphasePairCache,
			CollisionConfiguration collisionConfiguration)
            : this(btCollisionWorld_new(dispatcher._native, broadphasePairCache._native,
                collisionConfiguration._native))
		{
			_dispatcher = dispatcher;
			Broadphase = broadphasePairCache;
		}
开发者ID:rhynodegreat,项目名称:BulletSharpPInvoke,代码行数:8,代码来源:CollisionWorld.cs


示例15: UpdateActivationState

		public void UpdateActivationState(CollisionWorld colWorld, Dispatcher dispatcher)
		{
			btSimulationIslandManager_updateActivationState(_native, colWorld._native,
				dispatcher._native);
		}
开发者ID:rhynodegreat,项目名称:BulletSharpPInvoke,代码行数:5,代码来源:SimulationIslandManager.cs


示例16: RemoveOverlappingPair

 public override IntPtr RemoveOverlappingPair(BroadphaseProxy proxy0, BroadphaseProxy proxy1, Dispatcher dispatcher)
 {
     return IntPtr.Zero;
 }
开发者ID:rhynodegreat,项目名称:BulletSharp,代码行数:4,代码来源:AxisSweepTests.cs


示例17: FindUnions

		public void FindUnions(Dispatcher dispatcher, CollisionWorld colWorld)
		{
			btSimulationIslandManager_findUnions(_native, dispatcher._native, colWorld._native);
		}
开发者ID:rhynodegreat,项目名称:BulletSharpPInvoke,代码行数:4,代码来源:SimulationIslandManager.cs


示例18: BuildIslands

		public void BuildIslands(Dispatcher dispatcher, CollisionWorld colWorld)
		{
			btSimulationIslandManager_buildIslands(_native, dispatcher._native, colWorld._native);
		}
开发者ID:rhynodegreat,项目名称:BulletSharpPInvoke,代码行数:4,代码来源:SimulationIslandManager.cs


示例19: BuildAndProcessIslands

		public void BuildAndProcessIslands(Dispatcher dispatcher, CollisionWorld collisionWorld,
			IslandCallback callback)
		{
			btSimulationIslandManager_buildAndProcessIslands(_native, dispatcher._native,
				collisionWorld._native, callback._native);
		}
开发者ID:rhynodegreat,项目名称:BulletSharpPInvoke,代码行数:6,代码来源:SimulationIslandManager.cs


示例20: CollisionAlgorithmConstructionInfo

 public CollisionAlgorithmConstructionInfo(Dispatcher dispatcher, int temp)
 {
     _dispatcher1 = dispatcher;
     _native = btCollisionAlgorithmConstructionInfo_new2((dispatcher != null) ? dispatcher._native : IntPtr.Zero, temp);
 }
开发者ID:Cyberbanan,项目名称:BulletSharpUnity3d,代码行数:5,代码来源:CollisionAlgorithm.cs



注:本文中的BulletSharp.Dispatcher类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# BulletSharp.RigidBody类代码示例发布时间:2022-05-24
下一篇:
C# BulletSharp.DiscreteDynamicsWorld类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap