UNPKG

@rjfwhite/random-lib

Version:

Core engine for MML

85 lines (84 loc) 2.17 kB
{ "name": "@rjfwhite/random-lib", "displayName": "Core Engine", "version": "0.0.7", "description": "Core engine for MML", "homepage": "https://mml-engine.vercel.app", "module": "dist/index.js", "types": "dist/index.d.ts", "icon": "icon.png", "scripts": { "build": "esbuild src/index.ts --bundle --outfile=dist/index.js --format=esm --target=es2022 --minify --sourcemap", "build:dev": "esbuild src/index.ts --bundle --outfile=dist/index.js --format=esm --target=es2022 --sourcemap --watch", "build:types": "tsc --emitDeclarationOnly", "build:all": "npm run build && npm run build:types", "dev": "npm run build:dev & serve dist --cors", "clean": "rm -rf dist", "prepublishOnly": "npm run clean && npm run build:all" }, "keywords": [ "physics", "web", "typescript", "es-module", "browser", "collision-detection", "rigidbody" ], "author": "", "license": "MIT", "devDependencies": { "@dimforge/rapier3d-compat": "^0.18.0-beta.0", "esbuild": "^0.19.11", "serve": "^14.2.1", "typescript": "^5.3.3" }, "files": [ "dist/", "icon.png" ], "publishConfig": { "access": "public" }, "engines": { "node": ">=16" }, "schema": { "type": "object", "properties": { "gravity": { "type": "number", "description": "Gravity strength (m/s^2)", "default": -9.81 }, "enableCollisions": { "type": "boolean", "description": "Enable or disable collision detection", "default": true } }, "required": ["gravity"], "additionalProperties": false }, "attributes": [ { "name": "rigidbody", "elements": ["m-character", "m-object"], "schema": { "type": "boolean", "description": "Whether this element has a rigidbody (physics body) attached", "default": true } }, { "name": "mass", "elements": ["m-character", "m-object"], "schema": { "type": "number", "description": "The mass of the rigidbody in kilograms", "default": 1.0, "minimum": 0.0001 } } ] }