Jump to content

Where can I find this example map?


bansama
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

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

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.

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

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

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

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.

Link to comment
Share on other sites

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.

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...