Skip to content

Capsule and sphere with same height/radius are positioned differently #1022

Answered by jrouwe
SSNTails asked this question in Q&A
Discussion options

You must be logged in to vote

You need to subtract 2x the radius to get the height of the cylinder part of the capsule:

(object->height - object->radius) / 2 -> (object->height - 2 * object->radius) / 2

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SSNTails
Comment options

@SSNTails
Comment options

@SSNTails
Comment options

Answer selected by SSNTails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants