Jump to content

[resolved] Make a point of a line the child of a parent mesh


Recommended Posts


I think all is said in the title.  I wish I could move a mesh that moves a point on a line using parent/child (on a points).  But this seems not possible or I don't know how to do it. Unless there's another solution, but I don't see.
I made an example on this PG. can someone help me.



Link to comment
Share on other sites

I want to do the same thing in your PG, but by moving the gizmo, it moves the point to the line. 

It's for my editor, I want to create a pathfinding for the PNJ follow a path.  but in my editor, the user can change the path with the gizmo

Link to comment
Share on other sites

I think that the ideal would be to connect points (vector3) as:

line.points[0].parent = box; 

There are points in a line:

 var points = [cylinder1.position, cylinder2.position];
var line = BABYLON.Mesh.CreateLines("lines", points, scene, true);

But points is not accessible in the line.



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