bansama Posted July 16, 2014 Share Posted July 16, 2014 I was searching for information on making traditional doors (i.e., those that swing outward) and found this article about the addition of joint motors: http://www.leadwerks.com/werkspace/blog/1/entry-1138-leadwerks-30-updated-with-joint-motors/ In it, it mentions a new example map showing doors that swing open. I cannot find this map anywhere. Does anyone happen to know where it can downloaded from? Thanks Quote Link to comment Share on other sites More sharing options...
Josh Posted July 17, 2014 Share Posted July 17, 2014 That style of map from Leadwerks 3.0 is actually what lead to the creation of the current example maps. However, that map itself was never included in Leadwerks 3.1 on Steam. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
bansama Posted July 17, 2014 Author Share Posted July 17, 2014 That's a shame. Is there any chance of a new one for Leadwerks 3.1 being made? An working example of how to make such doors would be extremely useful. Quote Link to comment Share on other sites More sharing options...
Josh Posted July 17, 2014 Share Posted July 17, 2014 It's actually almost the exact same thing as the example doors map, which is included with Leadwerks: http://www.leadwerks.com/werkspace/page/tutorials/_/editor/doors-r101 The only difference is it uses the swinging door script instead of the sliding door script. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
macklebee Posted July 17, 2014 Share Posted July 17, 2014 There is an example of the sliding door script being used in the Tutorial: Switches and Events map. The video can be found here: and the tut is here: http://www.leadwerks.com/werkspace/page/tutorials/_/editor/switches-and-the-flowgraph-r104 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...
bansama Posted July 19, 2014 Author Share Posted July 19, 2014 @Josh @macklebee Thanks. It took some trial and error with messing around with both the pin and offset numbers (and some rather funny results), but have now worked out how to make traditional doors using that script. Quote Link to comment Share on other sites More sharing options...
Thirsty Panther Posted July 19, 2014 Share Posted July 19, 2014 Ok Bansama how did you get it to work. After seeing your first post I tried using the swing door script but with little success. Changing the offset made the door change position, not it point of rotation, as I would expect it to. I'm interested in how you got it to work. Quote Link to comment Share on other sites More sharing options...
bansama Posted July 19, 2014 Author Share Posted July 19, 2014 Here's what I did: 1 - Loaded up the tutorial map 03-Doors and saved it with a new name. That way any mistakes won't render the tutorial map useless should it be needed in the future. 2 - Using the second set of doors, I replaced the sliding door script for both doors with the swinging door one. 3 - Opened up the Flowgraph Editor and made sure the BoXTrigger:CollisionTrigger Collision() option was linked to the slidingdoor_left:SwingingDoor Open() and slidingdoor_right:SwingingDoor Open() options. If those don't exist in the Flowgraph Editor you may need to drag the door objects in to the Flowgraph Editor screen. 4 - Set the values in the script for slidingdoor_left: Offset 0.0, 0.0, 1.0; Pin 0.0, 1.0, 0.0 5 - Set the values in the script for slidingdoor_right: Offset 0.0, 0.0, -1.0; Pin 0.0, -1.0, 0.0 The trick will be getting the right combination of values to have any door opening on the side and in the direction you want. Hope that helps. Quote Link to comment Share on other sites More sharing options...
Thirsty Panther Posted July 20, 2014 Share Posted July 20, 2014 Cheers thanks mate. It works now. Quote Link to comment Share on other sites More sharing options...
bansama Posted July 20, 2014 Author Share Posted July 20, 2014 Glad to hear you got it working. I will add though that depending on the size and position of your door, you'll want to mess around with which actual offset to use (x, y, z) and try sizes that are smaller than 1.0. I found that for a door with a width of 128 cm, an offset of 0.7 works rather well. Quote 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.