YouGroove Posted August 6, 2013 Share Posted August 6, 2013 From beginning of LE3 i seen some collision types and choosen default ones, but why having that collisions if we don't know how this works ? The documentation says : static const int None static const int Collide static const int Prop static const int Scene static const int Character static const int Trigger static const int Debris Could we have explanations on the docs saying on how Collide, Trigger and Debris work ? There is nothing explaining that, and no info bulles on the editor also. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
DaDonik Posted August 6, 2013 Share Posted August 6, 2013 Those are just some predefined collision types. According to the docs (http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/entity/entitysetcollisiontype-r35) you can choose any value between 0 and 99. LEt me remid you that i don't own the engine and just took a quick look at the documentation, so no guarantee ^^ Quote (Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI) Link to comment Share on other sites More sharing options...
YouGroove Posted August 6, 2013 Author Share Posted August 6, 2013 Thanks But the doc and example is too much simple. It just creates objects and just shwo their type. This is nothing that explains all different type of collision. I'll have to dig if i can find how to detect collision between these objects. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rastar Posted August 6, 2013 Share Posted August 6, 2013 If you look at the docs (User Guide) it says Collision type This is the object's collision type. Collision types control what kinds of objects collide with one another. The following collisions will be recognized: Character : Character Character : Prop Character : Scene Character : Trigger (detection only, no physical reaction) Prop : Prop Prop : Scene Prop : Debris Debris : Scene So by using setCollisionType you're telling what kind your entity is, and these rules define if a collision will be registered when your entity intersects with another object. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted August 6, 2013 Author Share Posted August 6, 2013 Thanks for the details Rastar. What you listed was not in the docs in fact. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rastar Posted August 6, 2013 Share Posted August 6, 2013 This isn't in the command reference, but in the user guide http://www.leadwerks.com/werkspace/page/documentation/_/user-guide/scene-browser-r675 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.