Nuklear bindings

This commit is contained in:
2023-01-19 19:06:32 +00:00
parent 63eb212dcd
commit 4eeb16ec48
8 changed files with 72 additions and 11 deletions

View File

@@ -368,6 +368,8 @@ void phys2d_applycircle(struct phys2d_circle *circle)
float s = go->scale;
cpVect offset = { circle->offset[0] * s, circle->offset[1] * s };
YughInfo("Setting radius to %g ...", radius);
cpCircleShapeSetRadius(circle->shape.shape, radius);
cpCircleShapeSetOffset(circle->shape.shape, offset);
cpBodySetMoment(go->body, cpMomentForCircle(go->mass, 0, radius, offset));