Jump to content

Positioning a sphere accurately


Recommended Posts


I am trying to build a basic scene, that contains a ground a 2 spheres, I am trying to place the 1st sphere at the bottom right of the ground, and the 2nd sphere at the top right of the ground, however it seems that the 2 spheres are slightly distant from their intended location.

I am assuming the following:

- the origin point (0,0,0) is at the center of the ground object.

- the sphere position (x,y,z) is actually the position of the center vertex of the sphere.

for more info, please check the playground code here: http://www.babylonjs-playground.com/#23ZMHD#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.

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.


  • Recently Browsing   0 members

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