Пример #1
0
 public abstract void RemoveConstraintRef(BulletBody obj, BulletConstraint constrain);
Пример #2
0
     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;
     }
Пример #3
0
 public abstract bool SetConstraintParam(BulletConstraint constrain, ConstraintParams paramIndex, float value,
     ConstraintParamAxis axis);
Пример #4
0
 // =====================================================================================
 // btCollisionObject entries
 public abstract Vector3 GetAnisotripicFriction(BulletConstraint constrain);
Пример #5
0
 public abstract bool SpringSetEquilibriumPoint(BulletConstraint constrain, int index, float equilibriumPoint);
Пример #6
0
 public abstract bool SliderSet(BulletConstraint constrain, int softRestDamp, int dirLimOrtho, int linAng, float val);
Пример #7
0
 public abstract bool HingeSetLimits(BulletConstraint constrain, float low, float high, float softness, float bias, float relaxation);
Пример #8
0
 public abstract bool TranslationalLimitMotor(BulletConstraint constrain, float enable, float targetVel,
     float maxMotorForce);
Пример #9
0
 public abstract bool TranslationalLimitMotor(BulletConstraint constrain, float enable, float targetVel,
                                              float maxMotorForce);
Пример #10
0
 public abstract bool SetBreakingImpulseThreshold(BulletConstraint constrain, float threshold);
Пример #11
0
 public abstract bool UseFrameOffset(BulletConstraint constrain, float enable);
Пример #12
0
 public abstract bool SetAngularLimits(BulletConstraint constrain, Vector3 low, Vector3 hi);
Пример #13
0
 public abstract bool SetFrames(BulletConstraint constrain,
                                Vector3 frameA, Quaternion frameArot, Vector3 frameB, Quaternion frameBrot);
Пример #14
0
 public abstract void SetConstraintNumSolverIterations(BulletConstraint constrain, float iterations);
Пример #15
0
 public abstract bool SpringEnable(BulletConstraint constrain, int index, float numericTrueFalse);
Пример #16
0
 public abstract bool SetAngularLimits(BulletConstraint constrain, Vector3 low, Vector3 hi);
Пример #17
0
 public abstract bool SpringSetEquilibriumPoint(BulletConstraint constrain, int index, float equilibriumPoint);
Пример #18
0
 public abstract bool HingeSetLimits(BulletConstraint constrain, float low, float high, float softness, float bias, float relaxation);
Пример #19
0
 public abstract bool SpringSetStiffness(BulletConstraint constrain, int index, float stiffnesss);
Пример #20
0
 public abstract bool SpringSetDamping(BulletConstraint constrain, int index, float damping);
Пример #21
0
 public abstract bool SpringSetDamping(BulletConstraint constrain, int index, float damping);
Пример #22
0
 public abstract bool SliderMotor(BulletConstraint constrain, int forceVel, int linAng, float val);
Пример #23
0
 public abstract bool SliderSetLimits(BulletConstraint constrain, int lowerUpper, int linAng, float val);
Пример #24
0
 public abstract bool AddConstraintToWorld(BulletWorld world, BulletConstraint constrain,
     bool disableCollisionsBetweenLinkedObjects);
Пример #25
0
 public abstract bool SliderSet(BulletConstraint constrain, int softRestDamp, int dirLimOrtho, int linAng, float val);
Пример #26
0
 public abstract bool HasAnisotripicFriction(BulletConstraint constrain);
Пример #27
0
 public abstract bool SliderMotorEnable(BulletConstraint constrain, int linAng, float numericTrueFalse);
Пример #28
0
 public abstract void SetConstraintNumSolverIterations(BulletConstraint constrain, float iterations);
Пример #29
0
 public abstract bool SliderMotor(BulletConstraint constrain, int forceVel, int linAng, float val);
Пример #30
0
 public abstract void SetConstraintEnable(BulletConstraint constrain, float numericTrueFalse);
Пример #31
0
 public abstract bool CalculateTransforms(BulletConstraint constrain);
Пример #32
0
 public abstract bool SetFrames(BulletConstraint constrain,
     Vector3 frameA, Quaternion frameArot, Vector3 frameB, Quaternion frameBrot);
Пример #33
0
 public abstract bool SetConstraintParam(BulletConstraint constrain, ConstraintParams paramIndex, float value,
                                         ConstraintParamAxis axis);
Пример #34
0
 public abstract bool UseFrameOffset(BulletConstraint constrain, float enable);
Пример #35
0
 public abstract bool DestroyConstraint(BulletWorld world, BulletConstraint constrain);
Пример #36
0
 public abstract bool SetBreakingImpulseThreshold(BulletConstraint constrain, float threshold);
Пример #37
0
 public abstract bool AddConstraintToWorld(BulletWorld world, BulletConstraint constrain,
                                           bool disableCollisionsBetweenLinkedObjects);
Пример #38
0
 public abstract bool SpringEnable(BulletConstraint constrain, int index, float numericTrueFalse);
Пример #39
0
 public abstract bool RemoveConstraintFromWorld(BulletWorld world, BulletConstraint constrain);
Пример #40
0
 public abstract bool SpringSetStiffness(BulletConstraint constrain, int index, float stiffnesss);
Пример #41
0
 // =====================================================================================
 // btCollisionObject entries
 public abstract Vector3 GetAnisotripicFriction(BulletConstraint constrain);
Пример #42
0
 public abstract bool SliderSetLimits(BulletConstraint constrain, int lowerUpper, int linAng, float val);
Пример #43
0
 public abstract Vector3 SetAnisotripicFriction(BulletConstraint constrain, Vector3 frict);
Пример #44
0
 public abstract bool SliderMotorEnable(BulletConstraint constrain, int linAng, float numericTrueFalse);
Пример #45
0
 public abstract bool HasAnisotripicFriction(BulletConstraint constrain);
Пример #46
0
 public abstract bool CalculateTransforms(BulletConstraint constrain);
Пример #47
0
 public abstract void AddConstraintRef(BulletBody obj, BulletConstraint constrain);
Пример #48
0
 public abstract bool DestroyConstraint(BulletWorld world, BulletConstraint constrain);
Пример #49
0
 public abstract void RemoveConstraintRef(BulletBody obj, BulletConstraint constrain);
Пример #50
0
 public abstract bool RemoveConstraintFromWorld(BulletWorld world, BulletConstraint constrain);
Пример #51
0
 public virtual void DumpConstraint(BulletWorld sim, BulletConstraint constrain)
 {
 }
Пример #52
0
 public abstract Vector3 SetAnisotripicFriction(BulletConstraint constrain, Vector3 frict);
Пример #53
0
     public override bool SliderSet(BulletConstraint pConstraint, int softRestDamp, int dirLimOrtho, int linAng, float val)
     {
         SliderConstraint constraint = (pConstraint as BulletConstraintXNA).constrain as SliderConstraint;
 		switch (softRestDamp)
 		{
 			case SLIDER_SET_SOFTNESS:
 				switch (dirLimOrtho)
 				{
 					case SLIDER_SET_DIRECTION:
 						switch (linAng)
 						{
 							case SLIDER_LINEAR: constraint.SetSoftnessDirLin(val); break;
 							case SLIDER_ANGULAR: constraint.SetSoftnessDirAng(val); break;
 						}
 						break;
 					case SLIDER_SET_LIMIT:
 						switch (linAng)
 						{
 							case SLIDER_LINEAR: constraint.SetSoftnessLimLin(val); break;
 							case SLIDER_ANGULAR: constraint.SetSoftnessLimAng(val); break;
 						}
 						break;
 					case SLIDER_SET_ORTHO:
 						switch (linAng)
 						{
 							case SLIDER_LINEAR: constraint.SetSoftnessOrthoLin(val); break;
 							case SLIDER_ANGULAR: constraint.SetSoftnessOrthoAng(val); break;
 						}
 						break;
 				}
 				break;
 			case SLIDER_SET_RESTITUTION:
 				switch (dirLimOrtho)
 				{
 					case SLIDER_SET_DIRECTION:
 						switch (linAng)
 						{
 							case SLIDER_LINEAR: constraint.SetRestitutionDirLin(val); break;
 							case SLIDER_ANGULAR: constraint.SetRestitutionDirAng(val); break;
 						}
 						break;
 					case SLIDER_SET_LIMIT:
 						switch (linAng)
 						{
 							case SLIDER_LINEAR: constraint.SetRestitutionLimLin(val); break;
 							case SLIDER_ANGULAR: constraint.SetRestitutionLimAng(val); break;
 						}
 						break;
 					case SLIDER_SET_ORTHO:
 						switch (linAng)
 						{
 							case SLIDER_LINEAR: constraint.SetRestitutionOrthoLin(val); break;
 							case SLIDER_ANGULAR: constraint.SetRestitutionOrthoAng(val); break;
 						}
 						break;
 				}
 				break;
 			case SLIDER_SET_DAMPING:
 				switch (dirLimOrtho)
 				{
 					case SLIDER_SET_DIRECTION:
 						switch (linAng)
 						{
 							case SLIDER_LINEAR: constraint.SetDampingDirLin(val); break;
 							case SLIDER_ANGULAR: constraint.SetDampingDirAng(val); break;
 						}
 						break;
 					case SLIDER_SET_LIMIT:
 						switch (linAng)
 						{
 							case SLIDER_LINEAR: constraint.SetDampingLimLin(val); break;
 							case SLIDER_ANGULAR: constraint.SetDampingLimAng(val); break;
 						}
 						break;
 					case SLIDER_SET_ORTHO:
 						switch (linAng)
 						{
 							case SLIDER_LINEAR: constraint.SetDampingOrthoLin(val); break;
 							case SLIDER_ANGULAR: constraint.SetDampingOrthoAng(val); break;
 						}
 						break;
 				}
 				break;
 		}
         return true;
     }
Пример #54
0
 public abstract void AddConstraintRef(BulletBody obj, BulletConstraint constrain);
Пример #55
0
     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;
     }
Пример #56
0
 public virtual void DumpConstraint(BulletWorld sim, BulletConstraint constrain)
 {
 }
Пример #57
0
 public abstract void SetConstraintEnable(BulletConstraint constrain, float numericTrueFalse);