Link to the demo:
http://ballanceonline.com/
This demo uses Ammo.js as physics engine.
Demo source code:
Link to the demo:
http://ballanceonline.com/
This demo uses Ammo.js as physics engine.
Demo source code:
Nice! That was a lot of fun.
Couple of points:
I’ve faced 2. before, it’s hard to get balls to roll correctly. Are you applying the rotations in world or local space?
Thank you. Here is the code from Ammo.js
ms.getWorldTransform(transformAux1); var p = transformAux1.getOrigin(); var q = transformAux1.getRotation(); objThree.position.set(p.x(), p.y(), p.z()); objThree.quaternion.set(q.x(), q.y(), q.z(), q.w());
I think it should be in world space.
Nice game!
I think @looeee refers to the forces applied to the ball.
Cool!
Good work! Reminds me of one of my all time favorite games: Snowball run! A penguin running on a snowball on difficult tracks high in the sky. (And with the most annoying music.)