registerDefinitions static method

void registerDefinitions(
  1. EngineContext context
)

Registers the 3-D physics components into context, with the field types they are saved through, so scenes holding them load and save — for tools that read and write 3-D scenes without simulating them. Giving the engine a Physics3D does this already.

Implementation

static void registerDefinitions(EngineContext context) {
  context.fieldTypes.registerAll(
    Physics3DDefinitions.fieldTypes,
    ifAbsent: true,
  );
  context.definitions.registerAll(Physics3DDefinitions.all, ifAbsent: true);
}