本文整理汇总了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;
}
示例2: SpringSetEquilibriumPoint
public abstract bool SpringSetEquilibriumPoint(BulletConstraint constrain, int index, float equilibriumPoint);
示例3: TranslationalLimitMotor
public abstract bool TranslationalLimitMotor(BulletConstraint constrain, float enable, float targetVel,
float maxMotorForce);
示例4: SliderSet
public abstract bool SliderSet(BulletConstraint constrain, int softRestDamp, int dirLimOrtho, int linAng, float val);
示例5: SpringEnable
public abstract bool SpringEnable(BulletConstraint constrain, int index, float numericTrueFalse);
示例6: SetFrames
public abstract bool SetFrames(BulletConstraint constrain,
Vector3 frameA, Quaternion frameArot, Vector3 frameB, Quaternion frameBrot);
示例7: SliderMotor
public abstract bool SliderMotor(BulletConstraint constrain, int forceVel, int linAng, float val);
示例8: DumpConstraint
public virtual void DumpConstraint(BulletWorld sim, BulletConstraint constrain)
{
}
示例9: GetAnisotripicFriction
// =====================================================================================
// btCollisionObject entries
public abstract Vector3 GetAnisotripicFriction(BulletConstraint constrain);
示例10: CalculateTransforms
public abstract bool CalculateTransforms(BulletConstraint constrain);
示例11: DestroyConstraint
public abstract bool DestroyConstraint(BulletWorld world, BulletConstraint constrain);
示例12: AddConstraintToWorld
public abstract bool AddConstraintToWorld(BulletWorld world, BulletConstraint constrain,
bool disableCollisionsBetweenLinkedObjects);
示例13: AddConstraintRef
public abstract void AddConstraintRef(BulletBody obj, BulletConstraint constrain);
示例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;
}
示例15: SetConstraintNumSolverIterations
public abstract void SetConstraintNumSolverIterations(BulletConstraint constrain, float iterations);