cf_capsule_to_b2¶
Category: physics
GitHub: cute_physics.h
Converts a CF_Capsule to a b2Capsule (bit-identical).
b2Capsule cf_capsule_to_b2(CF_Capsule capsule) { b2Capsule out; out.center1 = cf_v2_to_b2(capsule.a); out.center2 = cf_v2_to_b2(capsule.b); out.radius = capsule.r; return out; }