Skip to content

Set Cylynder.type correctly when creating a Cylinder#59

Merged
marcofugaro merged 1 commit into
masterfrom
cylinder-type
Dec 24, 2020
Merged

Set Cylynder.type correctly when creating a Cylinder#59
marcofugaro merged 1 commit into
masterfrom
cylinder-type

Conversation

@marcofugaro

Copy link
Copy Markdown
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