Open x1911 opened 7 years ago
Forces are directional, hence your force should be a vector3 too.
@w84miracle thanks for reply, have you some example to show how this works?
has other way to apply force except body.applyImpulse ? if i want to keep the gravity [0, 9.8 ,0]
no look code in http://lo-th.github.io/Oimo.js/#planet you can keep gravity ;)
maybe your impulse is no strong enouth to jump i try a example soon
force in oimo needs to be updated in every frame. no update will not see the effect. body.applyImpulse ({x:0, y:0, z:0}, {x:0, y:20, z:0});
for example, i want a ball move to right side,
and i have tried to use body.applyImpulse ({ x:0, y:0, z:100 }, 10);
unfortunately it dosen't work.
BTW: how to make a ball jump in this case?