Reference

Cubism files

ay2d_add_physics3

ay2d_status ay2d_add_physics3(ay2d_model *m, const uint8_t *json, size_t len);

Gives the model a rig from a physics3.json, replacing any it had. The pose is kept and physics comes on. Thread: frame.

ay2d_add_motion3, ay2d_add_expression3

int32_t ay2d_add_motion3(ay2d_model *m, const char *name, const uint8_t *json, size_t len);
int32_t ay2d_add_expression3(ay2d_model *m, const char *name, const uint8_t *json, size_t len);

Adds a motion or an expression from its JSON under name. Returns its new index, or −1 with a reason. Thread: frame.