public void removeBody(CCPhysicsBodyInfo bodyInf)
		{
			var body = bodyInf.GetBody();
			if (_space.ContainsBody(body))
			{
				_space.RemoveBody(body);
			}
		}
		public void addBody(CCPhysicsBodyInfo bodyInf)
		{
			cpBody body = bodyInf.GetBody();

			if (!_space.ContainsBody(body))
			{
				_space.AddBody(body);
			}
		}
Example #3
0
        public void AddBody(CCPhysicsBodyInfo bodyInf)
        {
            cpBody body = bodyInf.GetBody();

            if (!_space.ContainsBody(body))
            {
                _space.AddBody(body);
            }
        }
Example #4
0
        public void RemoveBody(CCPhysicsBodyInfo bodyInf)
        {
            var body = bodyInf.GetBody();

            if (_space.ContainsBody(body))
            {
                _space.RemoveBody(body);
            }
        }
Example #5
0
 protected virtual void SetRotation(float rotation)
 {
     _info.GetBody().SetAngle(-((rotation + _rotationOffset) * (CCMathHelper.Pi / 180.0f)));
 }