我能让身体免疫重力吗?
我想要一个物理世界,其中只有一些元素受到重力影响(由加速度计设置)。我尝试过将某些物体的质量设置为 0,但这不起作用。有什么方法可以使某些身体免受其所处世界的重力影响吗?
I want a PhysicsWorld where only some elements are affected by gravity (as set by the Accelerometer). I've tried setting the mass of some objects to 0, but this doesn't work. Is there any way of making some Bodys immune to the gravity of the world they're in?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
想想在现实世界中你会如何做到这一点 - 你需要一个向上的力来抵消重力,使物体具有中性浮力。
因此,请尝试对身体施加与重力加速度相等且方向相反的加速度。
Think about how you'd do it in the real world - you need an upwards force to counteract gravity to make something neutrally buoyant.
So try applying an acceleration to the body which is equal and opposite to your gravitational acceleration.