我在box2d中比较新鲜,我在c ++ box2d中从事弓箭游戏。现在我想用鼠标做大炮旋转。请给我一个正确的代码。
cannonShape.SetAsBox(2,0.7);
b2FixtureDef cannonFixture; csv_logger = CSVLogger('training.log')
model.fit(X_train, Y_train, callbacks=[csv_logger])
cannonFixture.shape =&cannonShape;
enter code here