Skip to content

Commit 164f2f7

Browse files
committed
[3D Platformer] Use the Physics collision condition
1 parent 40b78ca commit 164f2f7

File tree

1 file changed

+36
-7
lines changed

1 file changed

+36
-7
lines changed

examples/3d-platformer/3d-platformer.json

+36-7
Original file line numberDiff line numberDiff line change
@@ -4749,13 +4749,13 @@
47494749
"conditions": [
47504750
{
47514751
"type": {
4752-
"value": "Collision3D::AreWithinDistance"
4752+
"value": "Physics3D::CollisionStarted"
47534753
},
47544754
"parameters": [
47554755
"Character",
4756-
"Character",
4756+
"Physics3D",
47574757
"Crab",
4758-
"100",
4758+
"Physics3D",
47594759
""
47604760
]
47614761
}
@@ -4767,15 +4767,44 @@
47674767
"conditions": [
47684768
{
47694769
"type": {
4770-
"value": "Physics3D::PhysicsCharacter3D::IsFalling"
4770+
"value": "BuiltinCommonInstructions::Or"
47714771
},
4772-
"parameters": [
4773-
"Character",
4774-
"PhysicsCharacter3D"
4772+
"parameters": [],
4773+
"subInstructions": [
4774+
{
4775+
"type": {
4776+
"value": "Physics3D::IsObjectOnGivenFloor"
4777+
},
4778+
"parameters": [
4779+
"Character",
4780+
"PhysicsCharacter3D",
4781+
"Crab",
4782+
"Physics3D",
4783+
""
4784+
]
4785+
},
4786+
{
4787+
"type": {
4788+
"value": "Physics3D::PhysicsCharacter3D::IsFalling"
4789+
},
4790+
"parameters": [
4791+
"Character",
4792+
"PhysicsCharacter3D"
4793+
]
4794+
}
47754795
]
47764796
}
47774797
],
47784798
"actions": [
4799+
{
4800+
"type": {
4801+
"value": "AjoutObjConcern"
4802+
},
4803+
"parameters": [
4804+
"",
4805+
"Crab"
4806+
]
4807+
},
47794808
{
47804809
"type": {
47814810
"value": "Crab::Flatten"

0 commit comments

Comments
 (0)