当前位置: 动力学知识库 > 问答 > 编程问答 >

physics - How do I make my ActionScript 3 Pool Game more realistic with Box2dFlash?

问题描述:

Here is my pool game engine done in Box2dFlash.

I would like to make this simulation more realistic as I received

mixed opinion from pool experts.

Here is my standard wall setting:

var leftWall = _sim.addBox({x:0.9, y:8.15, width: 0.6, height: 11.5, density: 0, fillAlpha: wallAlpha, lineAlpha: wallAlpha});

And of the ball:

_solidBall_7 = _sim.addCircle({x:ballPosX - (ballRadius * 5) - 0.8, y:ballPosY, radius:ballRadius, density: 0.1, linearDamping: 1, isBullet: true, restitution: 0.7, angularDamping: 5, skin: Solid_Bordo});

What other params I might try to improve the realistic movement of the pool game?

网友答案:

Nice work. Looks good.

To make the game mote realistic I would ...

  • Animate the balls (spinning, hitting the pockets)
  • Add sounds (hit ball, hit walls, hit pocket)
  • Add shadows (adds a 3d feel)
  • The balls should be beneath (masked out) by the walls
  • Look over the physics parameters
分享给朋友:
您可能感兴趣的文章:
随机阅读: