Jump to content

mesh.moveWithCollisions acting strangely


burbonvagin
 Share

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

Link to comment
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));

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...