Jump to content

Recommended Posts

Posted

Collision for type trigger in the docs is said to detect only with character

http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/collision-r778

But after testing in Lua, i have object with Collision type = 5 ("trigger") and it triggers with characters, props and scene.

Does the documentation need to be corrected on that point ?

 

(It's better to have trigger volumes possible with all other types as it is usefull for many things)

Stop toying and make games

Posted

see this explanation: http://www.leadwerks.com/werkspace/topic/10362-physics-collision-overlap/#entry76649

 

A collision type of 5 is debris, not trigger. And debris only has a "sliding collision" with a scene or prop collision type. For all of the other inherent types there is supposed to be no collision with the debris collision type.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Posted

I responded in that thread, my problem was not the collision types, but that you get stuck in Lua :

You don't have the function : Collision:SetResponse(a, b, type)

Stop toying and make games

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.

×
×
  • Create New...