Jump to content
  • entries
    945
  • comments
    5,899
  • views
    930,067

Leadwerks 3.0 Updated with Joint Motors


Josh

3,335 views

 Share

Leadwerks 3.0 has been updated with bug fixes and new support for joint motors. Hinge and slider joints can have an optional motor enabled that will rotate or move the joint to a specified orientation, at a speed determined by the new Joint::SetMotorSpeed command. This is great for making doors, elevators, as well as complex machinery made possible by the speed and stability of Newton Dynamics, the physics library powering Leadwerks (as well as the Amnesia series).

 

All joints can also have limits specified, as well as enabled or disabled dynamically. This means a moving motor can burn out, fall slack, and stop within a limited range of motion. The Joint class documentation demonstrates how to use these commands.

 

 

The Sliding Door script has been updated to use joint motors, rather than continuously updating physics. This makes the code quite a lot simpler. A swinging door script has also been added. The "distance" value should be used for the door open distance. Previously, a value called "offset" was used, but this was changed because the swinging doors use "offset" to denote an offset for the rotation center. An example map showing usage of both door types together with a trigger brush connected via flowchart is now provided.

 

blogentry-1-0-94937100-1378800795_thumb.jpg

  • Upvote 3
 Share

2 Comments


Recommended Comments

Guest
Add a comment...

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

×
×
  • Create New...