Floor physics issues


#1

No matter what I try, the player model just falls through the ground. I have collide and rigidbody components on both. I tried everything I could think of. What should I do?


#2

Does the playermodel have collision and rigidbody?


#3

That’s what I said. I tried it.


#4

Can you show the project?


#5

I don’t know how. Sorry.


#6

Copy the link in your URL bar and paste it here.


#7

https://playcanvas.com/editor/scene/761133


#8

Your model does not have a Collision or RigidBody component. You need to add those. And make sure you set the rigidbody to Dynamic instead of leaving it on Static.


#9

I figured out the cause of the other thing falling through though. The mesh collision is apparently the problem, as I forked your project and changed the collision to a cylinder, and it didn’t fall through.
https://playcanvas.com/editor/scene/764785


#10

Thanks. Only one problem. The collision body is off center. How do I fix that?


#11

Make the collision and the model different entities. Delete the model component of your character, and then add a model entity inside the collision and rigidbody entity.