MCPcopy Create free account
hub / github.com/crownengine/crown / compile_spherical_joint

Function compile_spherical_joint

src/resource/physics_resource.cpp:482–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480 }
481
482 s32 compile_spherical_joint(Buffer &output, UnitCompiler &compiler, FlatJsonObject &obj, CompileOptions &opts)
483 {
484 JointDesc jd;
485 s32 err = joint_common_parse(jd, JointType::SPHERICAL, compiler, obj, opts);
486 ENSURE_OR_RETURN(PHYSICS_RESOURCE, err == 0, opts);
487
488 FileBuffer fb(output);
489 return joint_common_write(fb, jd);
490 }
491
492 s32 compile_limb_joint(Buffer &output, UnitCompiler &compiler, FlatJsonObject &obj, CompileOptions &opts)
493 {

Callers

nothing calls this directly

Calls 2

joint_common_parseFunction · 0.85
joint_common_writeFunction · 0.85

Tested by

no test coverage detected