Jump to content

parented mesh lookAt problem


babbleon
 Share

Recommended Posts

Hello,

Here's a PG: http://www.babylonjs-playground.com/#A5R1J3

and here's what should happen:

383962938_Peek2018-05-0812-15.gif.1a598108362851dc35d5c4d766d96f31.gif

The problem is the large cylinder does not "lookAt" the smaller cylinder.

The large cylinder is parented to an empty which in turn is parented to an animated mesh and I think that is where the problem is.

Is this by design or am I being hard of thinking?

Thank you,

Link to comment
Share on other sites

The first cylinder looks at the center of the other cylinder that corresponds to the pivot point. You must move the pivot point to the base.

If this cylinder is an instance, you should instead make a clone and change its pivot point.

The problem is in the design of the model

Link to comment
Share on other sites

Ok, I see, it's because of parenting. The child object is not positioned correctly at the time of export to Babylon.

Have you try without making a parent.

I do not use Blender, so I'm not sure to be of much help.

Link to comment
Share on other sites

Yup, as per first post:

2 hours ago, babbleon said:

The large cylinder is parented to an empty which in turn is parented to an animated mesh and I think that is where the problem is.

Is this by design or am I being hard of thinking?

I don't think the parenting is the problem, it's the parent animation that is causing the issue. I was asking if I am doing something wrong or if this is a limitation / feature of BJS.

Thank you for you help, though!

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