Universe.Physics.BulletSPlugin.BSAPIXNA.SliderMotorEnable C# (CSharp) Method

SliderMotorEnable() public method

public SliderMotorEnable ( BulletConstraint pConstraint, int linAng, float numericTrueFalse ) : bool
pConstraint BulletConstraint
linAng int
numericTrueFalse float
return bool
        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;
        }
BSAPIXNA