Roland Posted September 6, 2015 Share Posted September 6, 2015 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) Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
macklebee Posted September 6, 2015 Share Posted September 6, 2015 Does the child CSG object have a mass or a script attached? If not, it will get collapsed along with the rest of the CSG objects at runtime. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Roland Posted September 7, 2015 Author Share Posted September 7, 2015 Okay. I can confirm that adding a 'dummy' empty script to the child solves the problem. I really don't see why this has to be done, but accept it as a solution . But its a bit tricky when things behaves different in the editor and in run-time. Thanks macklebee Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Olby Posted September 7, 2015 Share Posted September 7, 2015 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. 1 Quote Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64) Link to comment Share on other sites More sharing options...
Roland Posted September 7, 2015 Author Share Posted September 7, 2015 Performance is always a good reason 1 Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
reepblue Posted September 7, 2015 Share Posted September 7, 2015 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. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Rick Posted September 7, 2015 Share Posted September 7, 2015 I still think adding a checkbox in the properties section to collapse or not would be a better solution. 3 Quote Link to comment Share on other sites More sharing options...
Roland Posted September 7, 2015 Author Share Posted September 7, 2015 I still think adding a checkbox in the properties section to collapse or not would be a better solution. Yeah. Add an empty script feels a bit silly 1 Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Recommended Posts
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.