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

[Bullet] Angular limits in Generic6DOFJoint doesn't work #33707

Open
Tracked by #45333
wacyym opened this issue Nov 18, 2019 · 5 comments
Open
Tracked by #45333

[Bullet] Angular limits in Generic6DOFJoint doesn't work #33707

wacyym opened this issue Nov 18, 2019 · 5 comments

Comments

@wacyym
Copy link

wacyym commented Nov 18, 2019

Godot version:
3.1.1

OS/device including version:
Win 7

Issue description:
Im trying to use rigid body physics for car simulation with 6DOF Joint
Angular limits in Y/Z axis enabled, but wheel still can rotate around Y/Z axis.
This parameters doesnt work for me:
angular_limit_x/softness
angular_limit_x/restitution
angular_limit_x/damping
angular_limit_x/force_limit

Steps to reproduce:
Arrow keys - control vehicle.
Accelerate, turn in any direction - rear wheels will be rotated in Y/Z axis, despite of angular limits
bug1

Minimal reproduction project:
Car Using Physics.zip

@wacyym
Copy link
Author

wacyym commented Nov 18, 2019

After some resarch - problem can be solved using angular motors instead using applying torque for each wheel...
Function as designed?

@KoBeWi
Copy link
Member

KoBeWi commented Oct 26, 2020

@madmiraal Could you check if this is (still) valid?

@madmiraal
Copy link
Contributor

The bug is valid.

@rjeli
Copy link

rjeli commented Nov 20, 2021

workaround: dynamicsWorld->getSolverInfo().m_numIterations = 50;

@darthLeviN
Copy link
Contributor

workaround: dynamicsWorld->getSolverInfo().m_numIterations = 50;

based on your suggestion i figured out that more precise joints will just need more iterations.
a cheap workaround is to duplicate the same joint like 5 to 10 times. so if anyone out there desperately needs it to work just like me, duplicate the same joint for more iterations.

@Calinou Calinou changed the title Angular limits in Generic 6DOF Joint doesn't work [Bullet] Angular limits in Generic 6DOF Joint doesn't work Jan 9, 2022
@Calinou Calinou added this to the 4.0 milestone Jan 9, 2022
@Calinou Calinou changed the title [Bullet] Angular limits in Generic 6DOF Joint doesn't work [Bullet] Angular limits in Generic6DOFJoint doesn't work Jan 9, 2022
@fabriceci fabriceci modified the milestones: 4.0, 3.x Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants