当前位置: 首页>>代码示例>>C#>>正文


C# BulletSPlugin.BulletConstraint类代码示例

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


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

示例1: SliderMotorEnable

     public override bool SliderMotorEnable(BulletConstraint pConstraint, int linAng, float numericTrueFalse)
     {
         SliderConstraint constraint = (pConstraint as BulletConstraintXNA).constrain as SliderConstraint;
 		switch (linAng)
 		{
 			case SLIDER_LINEAR:
 				constraint.SetPoweredLinMotor(numericTrueFalse == 0.0 ? false : true);
 				break;
 			case SLIDER_ANGULAR:
 				constraint.SetPoweredAngMotor(numericTrueFalse == 0.0 ? false : true);
 				break;
 		}
         return true;
     }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:14,代码来源:BSAPIXNA.cs

示例2: SpringSetEquilibriumPoint

 public abstract bool SpringSetEquilibriumPoint(BulletConstraint constrain, int index, float equilibriumPoint);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs

示例3: TranslationalLimitMotor

 public abstract bool TranslationalLimitMotor(BulletConstraint constrain, float enable, float targetVel,
     float maxMotorForce);
开发者ID:VirtualReality,项目名称:Universe,代码行数:2,代码来源:BSApiTemplate.cs

示例4: SliderSet

 public abstract bool SliderSet(BulletConstraint constrain, int softRestDamp, int dirLimOrtho, int linAng, float val);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs

示例5: SpringEnable

 public abstract bool SpringEnable(BulletConstraint constrain, int index, float numericTrueFalse);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs

示例6: SetFrames

 public abstract bool SetFrames(BulletConstraint constrain,
     Vector3 frameA, Quaternion frameArot, Vector3 frameB, Quaternion frameBrot);
开发者ID:VirtualReality,项目名称:Universe,代码行数:2,代码来源:BSApiTemplate.cs

示例7: SliderMotor

 public abstract bool SliderMotor(BulletConstraint constrain, int forceVel, int linAng, float val);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs

示例8: DumpConstraint

 public virtual void DumpConstraint(BulletWorld sim, BulletConstraint constrain)
 {
 }
开发者ID:VirtualReality,项目名称:Universe,代码行数:3,代码来源:BSApiTemplate.cs

示例9: GetAnisotripicFriction

 // =====================================================================================
 // btCollisionObject entries
 public abstract Vector3 GetAnisotripicFriction(BulletConstraint constrain);
开发者ID:VirtualReality,项目名称:Universe,代码行数:3,代码来源:BSApiTemplate.cs

示例10: CalculateTransforms

 public abstract bool CalculateTransforms(BulletConstraint constrain);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs

示例11: DestroyConstraint

 public abstract bool DestroyConstraint(BulletWorld world, BulletConstraint constrain);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs

示例12: AddConstraintToWorld

 public abstract bool AddConstraintToWorld(BulletWorld world, BulletConstraint constrain,
     bool disableCollisionsBetweenLinkedObjects);
开发者ID:VirtualReality,项目名称:Universe,代码行数:2,代码来源:BSApiTemplate.cs

示例13: AddConstraintRef

 public abstract void AddConstraintRef(BulletBody obj, BulletConstraint constrain);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs

示例14: SliderMotor

     public override bool SliderMotor(BulletConstraint pConstraint, int forceVel, int linAng, float val)
     {
         SliderConstraint constraint = (pConstraint as BulletConstraintXNA).constrain as SliderConstraint;
 		switch (forceVel)
 		{
 			case SLIDER_MOTOR_VELOCITY:
 				switch (linAng)
 				{
 					case SLIDER_LINEAR:
 						constraint.SetTargetLinMotorVelocity(val);
 						break;
 					case SLIDER_ANGULAR:
 						constraint.SetTargetAngMotorVelocity(val);
 						break;
 				}
 				break;
 			case SLIDER_MAX_MOTOR_FORCE:
 				switch (linAng)
 				{
 					case SLIDER_LINEAR:
 						constraint.SetMaxLinMotorForce(val);
 						break;
 					case SLIDER_ANGULAR:
 						constraint.SetMaxAngMotorForce(val);
 						break;
 				}
 				break;
 		}
         return true;
     }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:30,代码来源:BSAPIXNA.cs

示例15: SetConstraintNumSolverIterations

 public abstract void SetConstraintNumSolverIterations(BulletConstraint constrain, float iterations);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs


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