mesh.moveWithCollisions acting strangely

Recommended Posts

I'm trying get mesh.movewithcollisions working, and I'm not sure why the player sphere is partially intersecting the sphere and the plane. I have some physics in the scene, but turning them off doesn't change the result.


html: http://jesseolsson.github.io/bug_movewithcollisions/

javascript: http://jesseolsson.github.io/bug_movewithcollisions/index.js

Share this post

Link to post
Share on other sites

In your Vector3,  you put 0 on the Y position, which has the effect of leaving your object's position or you put it on its height "2" => cube.position = new BABYLON.Vector3(0, 2, 0)

if you made -0.1, it'll work.


cube.moveWithCollisions (new BABYLON.Vector3 (0,01, -0.1, 0));

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.