question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CuboidCollider nested rotation seems incorrect

See original GitHub issue

Unfortunately rapiers default collision detection is failing my models so I constructed some CuboidColliders in place and used MeshCollider to disable collision on the model. Seems like the relative translation of the parent rotation is off with the CuboidColliders. Or maybe I’m doing this wrong?

https://codesandbox.io/s/rapier-physics-box-fan-experiment-collision-rotation-iptdes?file=/src/BoxFan/FanCollider.js:927-972

🙇‍♂️

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wiledalcommented, Jul 25, 2022

Thanks for all the debugging help 😅 @ClayCooperLA The rotations should now be predictable in 0.5.2!

https://codesandbox.io/s/rapier-physics-box-fan-experiment-collision-rotation-forked-l27no8?file=/src/BoxFan/FanCollider.js

0reactions
ClayCooperLAcommented, Jul 26, 2022

Thank you so much! @wiledal! Working perfectly now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best Practices For Rigid Bodies in Unity | Digital Opus
Mesh colliders must be convex to collide with other mesh colliders. Moving And Rotating Rigid Bodies. Avoid regularly setting transform.postion and transform.
Read more >
Allow RigidBody to have Colliders that are indirect children ...
If the victim is a child of doer, it's automatically transformed by doer's rotations which is what I want. The problem was that...
Read more >
Introduction to collision - Unity - Manual
Primitive colliders do not work correctly with shear transforms. If you use a combination of rotations and non-uniform scales in the Transform hierarchy...
Read more >
Mesh Collider is not always rotating together with object it is ...
My script works as follows, I rotate a few objects, then I do some raycasting, then I rotate the objects again, do the...
Read more >
Multiple collider components within a blueprint class (aka ...
I'm seeing some weird collision issues in UE4.2.1 when using more than one collider component in a blueprint. A quick summary of what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found