madmonkey Posted January 15, 2014 Share Posted January 15, 2014 Is it posisble to make objects solid in game, in the same way that blocks built in the engine are solid? I have been trying to make a solid fence using the models in the engine but have had no joy. Quote Link to comment Share on other sites More sharing options...
shadmar Posted January 15, 2014 Share Posted January 15, 2014 Yes, just add a shape to it : http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/shape/shapeconvexhull-r522 You can also do this under the physics tab in the edior for the entity. Remeber to give it mass aswell. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
madmonkey Posted January 15, 2014 Author Share Posted January 15, 2014 thank you, it seems obvious now! Though i now have a noth problem, It seems if my character colides with the object, it now jumps to the right leaving a gap to walk through anyway? I think it might be the collision setting wrong. Quote Link to comment Share on other sites More sharing options...
shadmar Posted January 15, 2014 Share Posted January 15, 2014 Ah if you want to be static, collideable but not moveable, it should have mass 0. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Guppy Posted January 15, 2014 Share Posted January 15, 2014 Ah if you want to be static, collideable but not moveable, it should have mass 0. Just a mass larger than the player, no? ( that way you can still knock over the fence with a truck or explosion if so desired) Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
DudeAwesome Posted January 15, 2014 Share Posted January 15, 2014 is it possible to make the shape visible or switch between shape and model in the LE3 Editor? just for debugging Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
Rick Posted January 15, 2014 Share Posted January 15, 2014 You can also right click the mdl file in the assets and select generate shape, polymesh, and it'll make a shape that matches the model itself. Although this works, it might not be the best solution all the time as the shape will be as detailed as the model, which might be overkill. Quote Link to comment Share on other sites More sharing options...
Rastar Posted January 15, 2014 Share Posted January 15, 2014 There's an option in the menu (I think it's "View Physics", don't have LE available right now) which shows the collision shapes as purple bodies (and the navmesh). Quote 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.