public override void Update(long gametime) { physic.UpdateVelocity(space.GetGravity(), 1, 0.01f); physic.UpdatePosition(1); shp.Update(trsf); cpVect position = physic.GetPosition(); InvokeOnMainThread(() => { SetPosition(position); }); angle = (physic.GetAngle() % 360) / 57.2958f; if (position.y > 500) { physic.ApplyImpulse(new cpVect(1, -150), new cpVect(0.1f, 0.1f)); } }