Mr. Fox Posted April 26, 2014 Share Posted April 26, 2014 Hey leadwerks community i need some help with a model and lua. I use Leadwerks 3.1 full(C/lua) and want to add a slider joint at a table for a drawer. It just should open and close it and be placable as prefab in the editor. Please help me and Thanks in advance! here is a picture Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 26, 2014 Share Posted April 26, 2014 You should look into LE3 FPS demo on sliding doors Lua code. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Josh Posted April 26, 2014 Share Posted April 26, 2014 The slider joint, together with the joint limits function will do this: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/joint/ You will need a custom script for the model. 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...
Mr. Fox Posted April 27, 2014 Author Share Posted April 27, 2014 Thanks for your answers . My problem is i dont know how to realize it. If somebody will code it , i will put it together and load it up for the community free to use. I think it will be a nice thing. Quote Link to comment Share on other sites More sharing options...
Josh Posted April 27, 2014 Share Posted April 27, 2014 http://www.leadwerks.com/werkspace/statuses/id/7198/ 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...
YouGroove Posted April 27, 2014 Share Posted April 27, 2014 @Mr.Fox : You could use PhysicsSetPosition() to open and close it, by just movint it from close position to open position. Why do you really need a slider ? Quote Stop toying and make games 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.