Add area and flag on physics
This commit is contained in:
+15
-1
@@ -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": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user