Jump to content

Draw box (like a bridge) between 2 points


jasonmcleod
 Share

Recommended Posts

Dang, @adam coming through again!

http://www.babylonjs-playground.com/#1RWE59#61 has exactly what I'm after. Seeing some twisting in my implementation, depending on where I place them, probably related to the world position.

I was heading down the path of adjusting rotation.y, but missed the swap of width and depth. I was hard coding the rotation.y and trying multiple values to see how it would affect it.. Your levelBox function is obviously much more appropriate ;)

Good news is that this still works well with physics.

 

@Pryme8 I've learned so much from this forum, and I'm focusing on Vectors now.

 

Thanks for everything guys

 

 

Link to comment
Share on other sites

Actually http://www.babylonjs-playground.com/#1RWE59#61 does show the same twisting, its just much less noticeable.

Added a 3rd sphere, and an OFFSET variable to make it more obvious when they are further apart: http://www.babylonjs-playground.com/#1RWE59#62

Still working through it obviously, but wanted to post the update that while the levelBox function certainly helps - there is still a slight twist.

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