Jump to content

Collision types


YouGroove
 Share

Recommended Posts

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.

Stop toying and make games

Link to comment
Share on other sites

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 ^^

(Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI)

Link to comment
Share on other sites

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.

Stop toying and make games

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

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

 Share

×
×
  • Create New...