Jump to content

moveWithCollision issue


Fotis
 Share

Recommended Posts

Hello all. I am new here and I have a very simple question with collisions

I made a very simple playground here

http://www.babylonjs-playground.com/#1ZKQJF#1

What I want is to be able to move the cubes around that are always attached to the ground unless they collide so the moving one will go on top of the other.

I think I have this right on my code but when you move the green cube on top of the blue and then move it on the edge, it suddenly moves sideways for no reason.

I dont want to use the physics engine as I would like to keep it simple.

Any help appreciated!

 

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...