I need to make a body "duck" how would i change the bodies size in the world so that it is shorter and the contacts adjust accordingly. Thanks so much!
How do I make a body smaller while in real time
General DiscussionRemove old body and create a new one.
Yea I figured that but I didn't really wanna do that because I still want the current velocity and everything of the first body.. thanks for the reply tho
You could
1. have two bodies joined by a prismatic joint which allows the upper body to move downwards when ducking
2. have two fixtures on one body and use the PreSolve callback as mentioned in the manual to ignore all collisions with one of the fixtures when ducking
1. have two bodies joined by a prismatic joint which allows the upper body to move downwards when ducking
2. have two fixtures on one body and use the PreSolve callback as mentioned in the manual to ignore all collisions with one of the fixtures when ducking
wow thats exactly what i was looking for thank you so much that makes perfect sense
Original thread: https://box2d.org/forum/viewtopic.php?t=5642