Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ghost rigid body feature #45

Open
saharan opened this issue Jan 24, 2022 · 3 comments · May be fixed by #77
Open

add ghost rigid body feature #45

saharan opened this issue Jan 24, 2022 · 3 comments · May be fixed by #77

Comments

@saharan
Copy link
Owner

saharan commented Jan 24, 2022

related to #34
just giving callbacks with no physical affection

@lo-th
Copy link

lo-th commented Jun 18, 2022

Hi, how do we do ?
any example ?

@Dev-MarkoF
Copy link

Dev-MarkoF commented Jun 20, 2022

I added in in my specific fork that i created for a university game engine i help building.
It's a very basic integration of the feature, but it does add a triggerEnter/triggerExit state, that is firing a usable event, similar to the existing collision events, and it's based on the shape of the trigger, so it works with any convex meshes.

The feature is independent of bodyType or group, any rigidybody can be a trigger by setting the isTrigger flag on it.

Currently working on a terrain integration, but i'm kinda stuck and need to understand the basic of the oimo engine better.
Adding triggers was doable with just a few lines of code, biggest problem was to make it so that, you get all points of contact returned as if it does collide but then do not further process them, in the correct way, so the standard collision is not interfered by this.

https://github.com/Dev-MarkoF/OimoPhysics
(I forked from the adapting Haxe 4.0 Dev Branch and applied most of the fixes saharan later used in the merger to master myself, but i'm an adept in physics programming, so the implementation of ghost bodies / trigger is just slapped in)

@Geequlim
Copy link

Geequlim commented Jul 3, 2022

Any progress about this?

@moisesjpelaez moisesjpelaez linked a pull request Aug 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants