问题
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