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

SetAngularLimits() public method

public SetAngularLimits ( BulletConstraint pConstraint, Vector3 low, Vector3 high ) : bool
pConstraint BulletConstraint
low Vector3
high Vector3
return bool
        public override bool SetAngularLimits(BulletConstraint pConstraint, Vector3 low, Vector3 high)
        {
            Generic6DofConstraint constraint = (pConstraint as BulletConstraintXNA).constrain as Generic6DofConstraint;
            IndexedVector3 lowlimit = new IndexedVector3(low.X, low.Y, low.Z);
            IndexedVector3 highlimit = new IndexedVector3(high.X, high.Y, high.Z);
            constraint.SetAngularLowerLimit(lowlimit);
            constraint.SetAngularUpperLimit(highlimit);
            return true;
        }
BSAPIXNA