Jump to content

Recommended Posts

Posted

Hi All,

 

I have a door frame and door model that I'm creating a prefab from. Both the door and frame models are larger than required, so inside the editor I dragged both objects into my world and applied a scaling factor to them. Then I dragged the door into the frame group, this all worked fine.

 

However, when I attached the swinging door script to the door and activate it in game, the door goes back to the original scaling factor.

 

I can solve this by scaling the models and reimporting them, but is this a bug because surely it obey the scaling factor as seen the in the WYSIWYG editor?

Posted

Update: Another way of solving this is to parent both the door and frame models to a pivot instead of one another and this causes the door model to retain its scaling factor.

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.

×
×
  • Create New...