Пример #1
0
		public void removeBody(CCPhysicsBodyInfo bodyInf)
		{
			var body = bodyInf.GetBody();
			if (_space.ContainsBody(body))
			{
				_space.RemoveBody(body);
			}
		}
Пример #2
0
		public void addBody(CCPhysicsBodyInfo bodyInf)
		{
			cpBody body = bodyInf.GetBody();

			if (!_space.ContainsBody(body))
			{
				_space.AddBody(body);
			}
		}
Пример #3
0
        public void AddBody(CCPhysicsBodyInfo bodyInf)
        {
            cpBody body = bodyInf.GetBody();

            if (!_space.ContainsBody(body))
            {
                _space.AddBody(body);
            }
        }
Пример #4
0
        public void RemoveBody(CCPhysicsBodyInfo bodyInf)
        {
            var body = bodyInf.GetBody();

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