If i move the collision goes off

If i move my collision goes off i don’t no how to fix it.

This is the link off my game

https://playcanvas.com/project/716746/overview/project-1-

If you are using dynamic rigidbodies, you have to use forces/velocities/etc to move the physics. At the moment, you are just moving the entity but the rigidbody hasn’t moved in the physics simulation.

A good example of this type of movement can be found here: https://developer.playcanvas.com/en/tutorials/first-person-movement/

A simple solution is to set the rigidbody type to Kinematic. But in that case you have to check for collisions in another way. In my own project I use raycasts for that.

image

That won’t stop the player going through walls though?

That’s true. Sorry for my answer.

Edit: I expanded my answer.