Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

AbstractMesh.moveWithCollisions bug?

$
0
0

Hi, 
I'm not 100% sure what's happening..

If meshPlayer.ellipsoidOffset.y is default 0
and you try to move on anything but a strait("flat") line, it bugs and collides instantly with the wall mesh without even being near. (See console.)
E.g. destination.y = 1 && meshPlayer.position.y = 1 && meshPlayer.ellipsoidOffset.y = 0 === works, anything else doesnt seem to work unless setting ellipsoidOffset.y..

see lines 38, 47 & 49 & console.

http://playground.babylonjs.com/#CBIPDN // Doesn't work, onCollide is triggered as if we hit the wall infront of us, even through we didn't. (no movement because of meshPlayer.destination = null; on collision detection)

http://playground.babylonjs.com/#CBIPDN#1  // Works

 

Any thoughts? :mellow:


Viewing all articles
Browse latest Browse all 760

Trending Articles