Skip to content

Add a way to set CF_NO_CONTACT_RESPONSE for rigid bodies #964

@riccardobl

Description

@riccardobl

Long story short, i have a physic projectile that needs to explode when hitting everything except one rb.
Of course i could do that by messing around with collision groups, but it turned out that bullet provides a more convenient way for my use case.

Enabling CF_NO_CONTACT_RESPONSE will make the rb behave pretty much like a ghost control that is subjected to forces, the collision events will still be triggered, but it will pass through everything.

For my personal use i've just made a patch that exposes the setCollisionFlags method riccardobl@f1840b2

Seeing over the years others issues that would have been easily fixed by this, I think the engine would benefit from having a setContactResponse(boolean) method in PhysicsCollisionObject.

Thoughts?

Metadata

Metadata

Assignees

Labels

PhysicsIssues with all kinds of Physics and their Bindingsenhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions