mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
e5488b7d32
* init * tsconfig.json * add box2d-wasm backend to cocos engine. not crash now in 3.8.0. * rigid-body, collider, and joint works now. * back * Joint: SetLinearFrequencyAndDampingRatio * PhysicsRayCastCallback, PhysicsAABBQueryCallback * box2d wasm debugDraw * asm.js * B2PolygonShape uses B2.ConvexPartition * box2d wasm contact disabled works now. * add unit test for physics2d. * b2ContactListenerWrapper::registerContactFixture * tweak * drawPolygon transfer array data from wasm to ts * tweak * contact event performance opt * revert to polygon collider 2d to original implementation. no need for libtess any more. * PostSolve ContactImpulse use raw pointer. * TransformVector2; debugDraw supports transform * enable rtti * WASM_OBJECT_PTR_2_TS_OBJECT, WASM_OBJECT_PTR_2_WASM_OBJECT * fix PreSolve parameter oldManifold error * B2.TransformVector2 --> b2Mul(in ts) * tweaks: code format. * eslint * eslint * remove physics-2d-box2d-wasm from render-config.json * comment tweaks * [opt] debug draw performance opt * tweaks
332 lines
10 KiB
JSON
332 lines
10 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"BaseItem": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"category": {
|
|
"type": "string"
|
|
},
|
|
"default": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"description": {
|
|
"description": "Description.",
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"$ref": "#/definitions/Record<string,FlagBaseItem>"
|
|
},
|
|
"label": {
|
|
"description": "Display text.",
|
|
"type": "string"
|
|
},
|
|
"native": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"wechatPlugin": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"CategoryInfo": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Features": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"2d": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"3d": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"animation": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"audio": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"base": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"dragon-bones": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"gfx-webgl": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"gfx-webgl2": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"gfx-webgpu": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"graphcis": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"intersection-2d": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"marionette": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"particle": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"particle-2d": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"physics": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"physics-2d": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"physics-2d-box2d": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"physics-2d-builtin": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"physics-2d-box2d-wasm": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"physics-ammo": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"physics-builtin": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"physics-cannon": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"physics-physx": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"primitive": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"profiler": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"skeletal-animation": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"spine": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"terrain": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"tiled-map": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"tween": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"ui": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"webview": {
|
|
"$ref": "#/definitions/Item"
|
|
},
|
|
"xr": {
|
|
"$ref": "#/definitions/Item"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Item": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"category": {
|
|
"type": "string"
|
|
},
|
|
"default": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"description": {
|
|
"description": "Description.",
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"$ref": "#/definitions/Record<string,FlagBaseItem>"
|
|
},
|
|
"label": {
|
|
"description": "Display text.",
|
|
"type": "string"
|
|
},
|
|
"multi": {
|
|
"description": "Whether if the feature of options allow multiple selection.",
|
|
"type": "boolean"
|
|
},
|
|
"native": {
|
|
"type": "string"
|
|
},
|
|
"options": {
|
|
"$ref": "#/definitions/Record<EngineFeature,BaseItem>"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"wechatPlugin": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Record<EngineFeature,BaseItem>": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"2d": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"3d": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"animation": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"audio": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"base": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"dragon-bones": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"gfx-webgl": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"gfx-webgl2": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"gfx-webgpu": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"graphcis": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"intersection-2d": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"marionette": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"particle": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"particle-2d": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-2d": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-2d-box2d": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-2d-builtin": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-2d-box2d-wasm": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-ammo": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-builtin": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-cannon": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"physics-physx": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"primitive": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"profiler": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"skeletal-animation": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"spine": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"terrain": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"tiled-map": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"tween": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"ui": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"webview": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
},
|
|
"xr": {
|
|
"$ref": "#/definitions/BaseItem"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Record<string,FlagBaseItem>": {
|
|
"additionalProperties": false,
|
|
"type": "object"
|
|
}
|
|
},
|
|
"properties": {
|
|
"$schema": {
|
|
"type": "string"
|
|
},
|
|
"categories": {
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/CategoryInfo"
|
|
},
|
|
"description": "The categories info",
|
|
"type": "object"
|
|
},
|
|
"features": {
|
|
"$ref": "#/definitions/Features",
|
|
"description": "The modules info"
|
|
}
|
|
},
|
|
"type": "object"
|
|
} |