Jump to content

[Solved] CSG rotation by script does not rotate childs


Roland
 Share

Recommended Posts

Maybe a bug or behavior by design?

 

If you have a CGS object with a child object.

 

In the editor the child will rotate along with the parent object when the parent is rotated. That's Ok and expected behavior. However if you rotate the parent object by a script (simple Turn command) the child does not rotate, only the parent.

 

 

Tested same thing with two mesh objects (fbx) and in that case both rotates as expected when parent is rotated (both by script and in the editor)

Roland Strålberg
Website: https://rstralberg.com

Link to comment
Share on other sites

It has been discussed before. CSG brushes, for performance reasons, are collapsed during runtime. If a brush doesn't have a script attached or physics enabled then it gets collapsed.

  • Upvote 1

Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)

Link to comment
Share on other sites

There are some cases in which you do need brushes not collapsed. The indicator lights in the Vectronic Demo are an example as they need to be told what color to change to during run time.

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

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.

 Share

×
×
  • Create New...