ocean Posted July 4, 2016 Share Posted July 4, 2016 I am confused as to how to set up swinging doors correctly in Leadwerks. As it is now it looks like the doors are mounted on hinges that extend 20 cm from the wall. Quote Ubuntu 14.04 / 64bit. Dell XPS430, Intel Core 2 Quad Q8300 @ 2.50GHz, 4Gb Ram, Radeon HD 6670, Leadwerks Pro edition (Steam). Link to comment Share on other sites More sharing options...
macklebee Posted July 4, 2016 Share Posted July 4, 2016 The sliding swinging door script comes with an 'Offset' property that allows you to set the pin's local position on the door. So for example, if you want the inherent model 'slidingdoor_left' to swing open at its side instead of its origin (which is at its bottom-center), then set the 'Offset' property to (-1.0,0.0,0.0). 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...
ocean Posted July 4, 2016 Author Share Posted July 4, 2016 Thanks both. I am unable to find a 'offset' property on the sliding door script. So, I take it you mean the 'swinging door' script. But setting it doesn't remedy the problem. It looks like the pivot is too far from the door's back so that it swings open far to wide. Quote Ubuntu 14.04 / 64bit. Dell XPS430, Intel Core 2 Quad Q8300 @ 2.50GHz, 4Gb Ram, Radeon HD 6670, Leadwerks Pro edition (Steam). Link to comment Share on other sites More sharing options...
macklebee Posted July 4, 2016 Share Posted July 4, 2016 Yes - swinging door script. In any case, it works fine for the model I suggested above. Are you using your own custom model? If so, then I suggest you post it as all we can do without seeing the model is guess how to resolve the problem. Edit -- in my suggestion above, I am not using a pivot but rather just the door model itself. 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...
ocean Posted July 4, 2016 Author Share Posted July 4, 2016 Hmm... I just applied the script to a csg brush. I couldn't find a swinging door prefab. Just sliders. Quote Ubuntu 14.04 / 64bit. Dell XPS430, Intel Core 2 Quad Q8300 @ 2.50GHz, 4Gb Ram, Radeon HD 6670, Leadwerks Pro edition (Steam). Link to comment Share on other sites More sharing options...
ocean Posted July 4, 2016 Author Share Posted July 4, 2016 Here's the map. Thanks for helping out. start.map.zip Quote Ubuntu 14.04 / 64bit. Dell XPS430, Intel Core 2 Quad Q8300 @ 2.50GHz, 4Gb Ram, Radeon HD 6670, Leadwerks Pro edition (Steam). Link to comment Share on other sites More sharing options...
macklebee Posted July 4, 2016 Share Posted July 4, 2016 The sliding door is the model I am referring to - you can just place the swinging door script on it. As for your issue, the offset value was wrong based on the size of your door. A 1-meter offset on the X-axis was too far but was just right for the sliding door model. For your CSG door which is 128 cm wide, you should use an offset of 0.64 on the X-axis instead. 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...
ocean Posted July 4, 2016 Author Share Posted July 4, 2016 Ah! Brilliant. Thank you for taking the time. 1 Quote Ubuntu 14.04 / 64bit. Dell XPS430, Intel Core 2 Quad Q8300 @ 2.50GHz, 4Gb Ram, Radeon HD 6670, Leadwerks Pro edition (Steam). 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.