Jump to content

Move the object


Andrey Zimin
 Share

Recommended Posts

17 hours ago, adam said:

Use Vector3.TransformCoordinateToRef:

http://playground.babylonjs.com/#UKH76V

Yeah. but if I at the moment of moving the body A begin to move the body B, then all the work is useless. Thus the need to use the method suggested above! I.e. create a temporary parent and from him to count!

var CoT = new BABYLON.TransformNode("root")

Link to comment
Share on other sites

If you have a found a method that works for you that's good and I would stick to it. However like @adam I cannot yet see the problem you might have with his method. In his example B is the ground and A the sphere. You can move A and B  and still have A moving relative to B http://playground.babylonjs.com/#UKH76V#1

Should you want to explain further the issue

5 hours ago, Andrey Zimin said:

if I at the moment of moving the body A begin to move the body B, then all the work is useless. Thus the need to use the method suggested above! I.e. create a temporary parent and from him to count!

the please add a playground.

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