Berken Posted November 23, 2016 Share Posted November 23, 2016 Hi guys, I want to break glass in Leadwerks. I want to breaking glass when I shoot with a gun or glass fall from high. note: my english is bad so i'm sorry Quote Link to comment Share on other sites More sharing options...
Josh Posted November 23, 2016 Share Posted November 23, 2016 This is an art problem. Everyone can figure out how to hide one model and replace it with a bunch of broken pieces, but you need the model / texture to make this. 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...
Berken Posted November 23, 2016 Author Share Posted November 23, 2016 This is an art problem. Everyone can figure out how to hide one model and replace it with a bunch of broken pieces, but you need the model / texture to make this. Thanks, but i am not know Lua or C++ im beginner. So i'm not break glass. note: my english is bad so i'm sorry Quote Link to comment Share on other sites More sharing options...
Josh Posted November 23, 2016 Share Posted November 23, 2016 The simple way is when a collision occurs, you just hide the existing model and show a bunch of fragments that represent the broken model. You need to understand how entity scripts work in order to do this: http://www.leadwerks.com/werkspace/page/tutorials/_/lua-scripting-r12#section6 The Newton API is all accessible in C++. I have not gotten into the breakage stuff yet because I felt like it wouldn't work like people expect, and would just open the door to more requests, and would always be considered incomplete. Physics breakage tends to work well for a single object that all breaks at once, but it doesn't work well when you get into supporting structures, like one piece falling because another was destroyed. 1 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...
gamecreator Posted November 23, 2016 Share Posted November 23, 2016 The Newton API is all accessible in C++. Do we have an example on how to use it somewhere? Searching the API docs for Newton brings back 6 results but only 1 example, which only seems to initialize it. Quote Link to comment Share on other sites More sharing options...
Josh Posted November 23, 2016 Share Posted November 23, 2016 They aren't Leadwerks commands, I mean the original Newton SDK: http://newtondynamics.com/wiki/index.php5?title=Main_Page 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...
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.