Sorry, my initial playground had poor parenting setup for rotating door, that’s why some misplacement oddities happened. I just forgot to position both hinge
and rotatingDoor
into correct positions before parenting.
https://playground.babylonjs.com/#4517EG#11.
But the problems didn’t go away.
If I first do positioning and parenting and only then I attach the physicsAggregate
everything looks okay while it’s not moving. However if I try open a door it’s forcedly closed immediately (true for both doors). Overall, it looks like after physicsAggregate
is assigned I can’t move object anymore, by changing its parent’s position, which was possible with Cannon.
The stairs look okay if physicsAggregate
is assigned after all steps are positioned. So at least it works with static objects now. But there is another oddity. With BABYLON.PhysicsShapeType.BOX
everything works as expected, but with BABYLON.PhysicsShapeType.MESH
it doesn’t work at all. A cube can be pushed through the stairs.
https://playground.babylonjs.com/#GZIEA0#1