Skip to content

Conversation

@RaphaelIT7
Copy link
Contributor

[+] Implement JoltPhysicsObject::IsAttachedToConstraint
[+] Improved fixed constraints
This works by implementing a m_bConstraintPinned bool, which acts like the normal m_bPinned bool but is only set/used specifically by fixed constraints (or in the future by others too).
If an object is frozen, all bodies connected using a fixed constraint will have their m_bConstraintPinned and their layers will be updated, effectively acting as if ::EnableMotion(false) was used.
The ingame result (tested in gmod) is a perfect (or as good as it gets) fixed constraint, which acts far better than Jolt's normal fixed constraint.
The issue with Jolt's normal fixed constraints is - that they aren't perfectly fixed - they can still move, still rotate, which isn't that great.

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.

1 participant