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

Feature Request: Axis alignment choices for cylinder colliders #778

Open
RulerOfCakes opened this issue Dec 29, 2024 · 0 comments
Open

Feature Request: Axis alignment choices for cylinder colliders #778

RulerOfCakes opened this issue Dec 29, 2024 · 0 comments
Labels

Comments

@RulerOfCakes
Copy link

The cylinder collider currently only follows a y-up convention by default with the given constructor Collider::cylinder(), where the height parameter will result in the cylinder growing in the positive y axis direction. This becomes a slight nuisance since unlike most other primitive collider geometry, wanting to have a z-aligned / x-aligned cylinder means creating a y-aligned cylinder and then having to apply an extra rotation for that specific collider.

I found this issue to stand out the most when interpreting geometry from external files(e.g. URDF) that follow different coordinate systems using the z-axis as the upwards direction, since the local transforms for the cylinders will always end up having an extra rotation to be aligned to the z-axis compared to other instantiated collider geometry.

I think it would be nice to expose APIs for constructing cylinder colliders aligned to different axis, in constructor forms like there already exists for capsule colliders: Collider::capsule_x, Collider::capsule_y, Collider::capsule_z.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants