Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add DrawCapsule(Wires)#2761

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
raysan5 merged 2 commits intoraysan5:masterfromsinoftheta:master
Oct 17, 2022
Merged

Add DrawCapsule(Wires)#2761

raysan5 merged 2 commits intoraysan5:masterfromsinoftheta:master
Oct 17, 2022

Conversation

@sinoftheta
Copy link
Contributor

@sinofthetasinoftheta commentedOct 16, 2022
edited
Loading

These changes add the DrawCapsule() and DrawCapsuleWires() functions. They are heavily based off of the DrawCylinder() and DrawSphere() functions. I came across the need to render capsules based off of two points and a radius when dealing withcapsule collision and decided to implement these functions.

I'm not sure if these should actually be the DrawCapsuleEx() functions, and that the DrawCapsule() functions should always draw capsules vertically and instead of taking a second point, just take a "length" parameter, but having them defined by two points and a radius seems simple enough and its what I need for my use case.

I also updated the models_geometric_shapes example and its image.

@raysan5raysan5 merged commit7e7939e intoraysan5:masterOct 17, 2022
@raysan5
Copy link
Owner

@IanBand Thanks for the addition! :)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@sinoftheta@raysan5

[8]ページ先頭

©2009-2025 Movatter.jp