BulletPhysics (ammo.js) - How would you applying force directed to a point?

孤街醉人 提交于 2019-12-11 14:40:28

问题


I want the Force converge to a point of the scene. So the Force will not be the same on each point of the scene (like Y vector) but change direction in the space. It is like gravity converge to the center of the Planet or Star.

How would you do this with Ammo.js ?

Best regards

PS1 : Firstly, I want exactly to rewrite this example with Ammo.js : http://lo-th.github.io/Oimo.js/#planet

PS2 : My final intention is to rewrite this example of gravity in 3D with Three.js and Ammo.js : https://bruno-m-.github.io/gravity/ I want planets and satellits turn around this point with only their initial velocity, direction, Mass and this Force, like reality.

PS3 : it isn't exactly the same question of this problem : BulletPhysics (ammo.js) - How would you go about applying force to an object? (where the direction of the force didn't change)

来源:https://stackoverflow.com/questions/49184214/bulletphysics-ammo-js-how-would-you-applying-force-directed-to-a-point

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!