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

Set Cylynder.type correctly when creating a Cylinder #59

Merged
merged 1 commit into from
Dec 24, 2020

Conversation

marcofugaro
Copy link
Member

Original issue: schteppe#329

Since the cylinder is a ConvexPolyhedron under the hood, it was using its type to test the collisions agains other objects.

Now that it has a type by itself, the Cylinder collisions methods were needed. I created them and made them call the ConvexPolyhedron collisions methods.

I also exposed the radiusTop radiusBottom height numSegments properties of the Cylinder.

@marcofugaro marcofugaro merged commit 1372dc9 into master Dec 24, 2020
@marcofugaro marcofugaro deleted the cylinder-type branch December 24, 2020 19:16
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