Skip to content

Add trigger collisions.#77

Closed
moisesjpelaez wants to merge 0 commit intosaharan:masterfrom
moisesjpelaez:master
Closed

Add trigger collisions.#77
moisesjpelaez wants to merge 0 commit intosaharan:masterfrom
moisesjpelaez:master

Conversation

@moisesjpelaez
Copy link
Copy Markdown
Contributor

Taking bits from here from @Dev-MarkoF. One thing is manifolds should be cleared/detached in World.hx (but I'm not sure what does that mean).

I hope this helps as a starting point if it doesn't close #45 .

Tested and working in Armory 2024.07

@saharan
Copy link
Copy Markdown
Owner

saharan commented May 18, 2025

Thank you, it definitely helps!
I need to edit and test it before merge though, e.g. shapes should have the isTrigger flag, not rigid bodies because collision events occur per shape pair.

@moisesjpelaez
Copy link
Copy Markdown
Contributor Author

moisesjpelaez commented Aug 9, 2025

I moved the isTrigger flag to Shape. I also attempted a fix when trigger collisions occur, by reducing the manifolds to 1 in World.step(), however after a trigger collision happens, sometimes the non-trigger body that collided pass through other non-trigger bodies for a few milliseconds.

Edit: I just fixed the trespassing issue.

@moisesjpelaez
Copy link
Copy Markdown
Contributor Author

Closed PR as I made the changes in my fork's main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add ghost rigid body feature

2 participants