Seeking suggestions on sprites and collision

Hi @Jieling_Yang

I did a quick test with physics and a sprite:

https://www.babylonjs-playground.com/#VGY2FA#1

I attached the sprite to the physics object using scene.registerBeforeRender.
The main issues I see are:

  • difficulties to tweak the physics to get the exact controls you want (friction, momentum,…)
  • carrefully set the collision volume

In my PG, you can change player1Mat.alpha = 0.5; to see the collision sphere (might help you later for debugging)

1 Like