Search the Community
Showing results for tags 'movewithcollision'.
-
Hello guys ! http://www.babylonjs-playground.com/#1E3DCH#2 I do some experiments with the native function moveWithCollision and the ellipsoid parameter for meshes. I don't know what dimension should be the ellipsoid here or the ellipsoid offset. Our character is the red man and the obstacle is the blue box. The character should collide with the obstacle. I want to test collisions with man on the floor and box at different y positions : box on the floor (collision), floating box in front of man (collision), floating box upside the man (no collision) When box is on the floor, it's ok. There is a problem when the box is floating in front of the man (in the PG), because the man doesn't stop. If I change the ellipsoid number Y from 2.0 to 2.5, the man will be floating with strange collision and I want that the man stays on the floor. Offset is for moving the ellipsoid from the center of the mesh ? So I don't need it here ? Can we implement a function to draw the ellipsoid ?
-
hi all, I use BABYLON.SceneLoader to load a maze scene with many walls, and also import a spider robot to this scene. But when I want to use moveWithCollision method to control robot moving, it's not work. Robot will cross the wall and not detect collision. If I create a scene manually and create many box instead of walls, the moveWithCollision method has worked. I'm sure all wall's checkCollisions property is true...kindly suggest me for this
- 12 replies
-
- babylon.js
- collision
-
(and 1 more)
Tagged with: