Skip to content

Changing dimensions of shape after it's been created. #1006

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

You must be logged in to vote

To change a shape, you have to create a new one and then call BodyInterface::SetShape. Adjusting a shape would not be thread safe (collision queries could be accessing the shape from a different thread) and is therefore not supported. Note that there is ShapeSettings::ClearCachedResult if you want to create a new shape from the same settings object (although with a simple sphere you can also directly construct it).

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@SSNTails
Comment options

@jrouwe
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
4 participants