0

I'm trying to manage collision with babylon.js. Everything runs well with an automatic move, but with keyboard event, when the ball moves, it loses collision it's property.

You can take a look here. I've tried to move the ball with sphere.moveWithCollisions(); but it doesn't work.

Mr. Alien
  • 153,751
  • 34
  • 298
  • 278
KbZuhn
  • 57
  • 1
  • 7

1 Answers1

0

Hey this is because collisions are about player moving (like in FPS) and you are using physics simulation. To manually update an physic object, just call .updatePhysicsBodyPosition() after updating it

David Catuhe
  • 1,747
  • 1
  • 10
  • 9