Jump to content

Collision types

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.

Share this post

Link to post

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.

Share this post

Link to post

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.

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

  • Create New...