예제 #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);