hey there,
so i’m trying to build an elevator, but somehow it’s not working and i can’t find a solution… Can someone please point me in the right direction? thanks!
EDIT: PG → https://playground.babylonjs.com/#1UU4WF#2
so i have a player being followed by a FollowCamera().
player.checkCollisions, player.applyGravity and player.collisionsEnabled are all set to true.
i move the player around via player.moveWithCollisions(new BABYLON.Vector3(0, 0, 0.2)); which works fine, the player runs against walls as intendet.
now i want an elevator to lift the player up along the z-axis. fist i tried an animation, but the elevator-tile just moved trough the player not affecting it.
then i build the elevator-tile the same way i build my player, moving it with moveWithCollisions, too. but it still moves through the player
can someone please explain to me, why my player is running correctly against walls, but my elevator-tile is not “running” against my player nor affecting it in any way?
many thanks!