You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use a box shape for my character instead of a capsule but I'm having some issues with changing the mover code.
I basically copied all of the mover code and made separate versions that use b2Polygon instead of b2Capsule (b2World_CastMoverBox etc.). The issue is that when using a box my character falls through the ground.
In my b2World_CastMoverBox I removed the B2_ASSERT( mover->radius > 2.0f * B2_LINEAR_SLOP ) and tried setting canEncroach to false but it didn't help.
What would be needed to make a mover with radius 0?
My reasoning for this is that a capsule can "climb" platform corners with enough speed. Here's an example:
capsule.mp4
When I jump and dash at the right height the rounded part of the capsule climbs up to the platform.
Hi.
I want to use a box shape for my character instead of a capsule but I'm having some issues with changing the mover code.
I basically copied all of the mover code and made separate versions that use
b2Polygoninstead ofb2Capsule(b2World_CastMoverBoxetc.). The issue is that when using a box my character falls through the ground.In my
b2World_CastMoverBoxI removed theB2_ASSERT( mover->radius > 2.0f * B2_LINEAR_SLOP )and tried settingcanEncroachto false but it didn't help.What would be needed to make a mover with radius 0?
My reasoning for this is that a capsule can "climb" platform corners with enough speed. Here's an example:
capsule.mp4
When I jump and dash at the right height the rounded part of the capsule climbs up to the platform.