Ejemplo n.º 1
0
        protected bool Init(CCPhysicsBody a, CCPhysicsBody b, float rate)
        {
            if (!base.Init(a, b))
            {
                return(false);
            }

            cpConstraint joint = new cpSimpleMotor(GetBodyInfo(a).Body,
                                                   GetBodyInfo(b).Body,
                                                   rate);

            if (joint == null)
            {
                return(false);
            }

            _info.Add(joint);


            return(true);
        }
Ejemplo n.º 2
0
 public void Draw(cpSimpleMotor cpSimpleMotor)
 {
     //Not used
 }