Add area and flag on physics

This commit is contained in:
2026-07-20 12:31:14 -05:00
parent 373f1c1010
commit b9f06fef7a
27 changed files with 1956 additions and 114 deletions
+15 -1
View File
@@ -34,7 +34,7 @@
"displayState": { "cull": false, "depthTest": true, "blend": false }
},
{ "type": "PLAYER", "moveSpeed": 4, "jumpImpulse": 6 },
{ "type": "PHYSICS", "bodyType": "DYNAMIC" }
{ "type": "PHYSICS", "bodyType": "DYNAMIC", "collideMask": 3 }
]
},
{
@@ -55,6 +55,20 @@
}
]
},
{
"name": "testArea",
"components": [
{ "type": "POSITION", "x": 2, "y": 1, "z": 0 },
{
"type": "TRIGGER",
"collideMask": 2,
"shape": {
"type": "CUBE",
"halfExtentX": 1.5, "halfExtentY": 1.5, "halfExtentZ": 1.5
}
}
]
},
{
"components": [
{