开发者

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

开发者 https://www.devze.com 2023-01-30 11:11 出处:网络
Here is my pool game engine done in Box2dFlash. I would like to make this simulation more realistic as I received

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: tru开发者_如何学Ce, 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
0

精彩评论

暂无评论...
验证码 换一张
取 消