Jump to content

Swinging Doors


ocean
 Share

Recommended Posts

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.

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

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

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

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.

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

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.

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

Hmm... I just applied the script to a csg brush. I couldn't find a swinging door prefab. Just sliders.

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

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.

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

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