Skip to content

Commit 14139bc

Browse files
committed
Rename the behavior from Vehicle to Car
1 parent cdfc5ba commit 14139bc

File tree

1 file changed

+40
-32
lines changed

1 file changed

+40
-32
lines changed

examples/3d-car-coin-hunt/3d-car-coin-hunt.json

+40-32
Original file line numberDiff line numberDiff line change
@@ -1770,11 +1770,12 @@
17701770
"shapeOffsetZ": 6,
17711771
"massCenterOffsetX": 0,
17721772
"massCenterOffsetY": 0,
1773-
"massCenterOffsetZ": -25
1773+
"massCenterOffsetZ": -25,
1774+
"massOverride": 1500
17741775
},
17751776
{
1776-
"name": "PhysicsVehicle3D",
1777-
"type": "Physics3D::PhysicsVehicle3D",
1777+
"name": "PhysicsCar3D",
1778+
"type": "Physics3D::PhysicsCar3D",
17781779
"physics3D": "Physics3D",
17791780
"steerAngleMax": 70,
17801781
"beginningSteerSpeed": 140,
@@ -1875,7 +1876,8 @@
18751876
"shapeOffsetZ": 0,
18761877
"massCenterOffsetX": 0,
18771878
"massCenterOffsetY": 0,
1878-
"massCenterOffsetZ": 0
1879+
"massCenterOffsetZ": 0,
1880+
"massOverride": 0
18791881
}
18801882
],
18811883
"content": {
@@ -1926,7 +1928,8 @@
19261928
"shapeOffsetZ": 0,
19271929
"massCenterOffsetX": 0,
19281930
"massCenterOffsetY": 0,
1929-
"massCenterOffsetZ": 0
1931+
"massCenterOffsetZ": 0,
1932+
"massOverride": 0
19301933
}
19311934
],
19321935
"content": {
@@ -1977,7 +1980,8 @@
19771980
"shapeOffsetZ": 0,
19781981
"massCenterOffsetX": 0,
19791982
"massCenterOffsetY": 0,
1980-
"massCenterOffsetZ": 0
1983+
"massCenterOffsetZ": 0,
1984+
"massOverride": 0
19811985
}
19821986
],
19831987
"content": {
@@ -2028,7 +2032,8 @@
20282032
"shapeOffsetZ": 0,
20292033
"massCenterOffsetX": 0,
20302034
"massCenterOffsetY": 0,
2031-
"massCenterOffsetZ": 0
2035+
"massCenterOffsetZ": 0,
2036+
"massOverride": 0
20322037
}
20332038
],
20342039
"content": {
@@ -2114,7 +2119,8 @@
21142119
"shapeOffsetZ": 0,
21152120
"massCenterOffsetX": 0,
21162121
"massCenterOffsetY": 0,
2117-
"massCenterOffsetZ": 0
2122+
"massCenterOffsetZ": 0,
2123+
"massOverride": 0
21182124
}
21192125
],
21202126
"content": {
@@ -2234,7 +2240,8 @@
22342240
"angularDamping": 0.1,
22352241
"gravityScale": 1,
22362242
"layers": 17,
2237-
"masks": 17
2243+
"masks": 17,
2244+
"massOverride": 0
22382245
}
22392246
],
22402247
"content": {
@@ -2285,7 +2292,8 @@
22852292
"shapeOffsetZ": 8,
22862293
"massCenterOffsetX": 0,
22872294
"massCenterOffsetY": 0,
2288-
"massCenterOffsetZ": 0
2295+
"massCenterOffsetZ": 0,
2296+
"massOverride": 0
22892297
}
22902298
],
22912299
"content": {
@@ -2931,11 +2939,11 @@
29312939
"actions": [
29322940
{
29332941
"type": {
2934-
"value": "Physics3D::PhysicsVehicle3D::SimulateBackwardKey"
2942+
"value": "Physics3D::PhysicsCar3D::SimulateBackwardKey"
29352943
},
29362944
"parameters": [
29372945
"Player",
2938-
"PhysicsVehicle3D"
2946+
"PhysicsCar3D"
29392947
]
29402948
}
29412949
]
@@ -2956,11 +2964,11 @@
29562964
"actions": [
29572965
{
29582966
"type": {
2959-
"value": "Physics3D::PhysicsVehicle3D::SimulateForwardKey"
2967+
"value": "Physics3D::PhysicsCar3D::SimulateForwardKey"
29602968
},
29612969
"parameters": [
29622970
"Player",
2963-
"PhysicsVehicle3D"
2971+
"PhysicsCar3D"
29642972
]
29652973
}
29662974
]
@@ -2981,11 +2989,11 @@
29812989
"actions": [
29822990
{
29832991
"type": {
2984-
"value": "Physics3D::PhysicsVehicle3D::SimulateLeftKey"
2992+
"value": "Physics3D::PhysicsCar3D::SimulateLeftKey"
29852993
},
29862994
"parameters": [
29872995
"Player",
2988-
"PhysicsVehicle3D"
2996+
"PhysicsCar3D"
29892997
]
29902998
}
29912999
]
@@ -3006,11 +3014,11 @@
30063014
"actions": [
30073015
{
30083016
"type": {
3009-
"value": "Physics3D::PhysicsVehicle3D::SimulateRightKey"
3017+
"value": "Physics3D::PhysicsCar3D::SimulateRightKey"
30103018
},
30113019
"parameters": [
30123020
"Player",
3013-
"PhysicsVehicle3D"
3021+
"PhysicsCar3D"
30143022
]
30153023
}
30163024
]
@@ -3031,11 +3039,11 @@
30313039
"actions": [
30323040
{
30333041
"type": {
3034-
"value": "Physics3D::PhysicsVehicle3D::SimulateHandBreakKey"
3042+
"value": "Physics3D::PhysicsCar3D::SimulateHandBreakKey"
30353043
},
30363044
"parameters": [
30373045
"Player",
3038-
"PhysicsVehicle3D"
3046+
"PhysicsCar3D"
30393047
]
30403048
}
30413049
]
@@ -3077,11 +3085,11 @@
30773085
"actions": [
30783086
{
30793087
"type": {
3080-
"value": "Physics3D::PhysicsVehicle3D::SimulateAcceleratorStick"
3088+
"value": "Physics3D::PhysicsCar3D::SimulateAcceleratorStick"
30813089
},
30823090
"parameters": [
30833091
"Player",
3084-
"PhysicsVehicle3D",
3092+
"PhysicsCar3D",
30853093
"Gamepads::TriggerPressure(1, \"RT\") - Gamepads::TriggerPressure(1, \"LT\")"
30863094
]
30873095
}
@@ -3106,11 +3114,11 @@
31063114
"actions": [
31073115
{
31083116
"type": {
3109-
"value": "Physics3D::PhysicsVehicle3D::SimulateSteeringStick"
3117+
"value": "Physics3D::PhysicsCar3D::SimulateSteeringStick"
31103118
},
31113119
"parameters": [
31123120
"Player",
3113-
"PhysicsVehicle3D",
3121+
"PhysicsCar3D",
31143122
"Gamepads::TriggerPressure(1, \"RT\") - Gamepads::TriggerPressure(1, \"LT\")"
31153123
]
31163124
}
@@ -3275,11 +3283,11 @@
32753283
"actions": [
32763284
{
32773285
"type": {
3278-
"value": "Physics3D::PhysicsVehicle3D::SimulateAcceleratorStick"
3286+
"value": "Physics3D::PhysicsCar3D::SimulateAcceleratorStick"
32793287
},
32803288
"parameters": [
32813289
"Player",
3282-
"PhysicsVehicle3D",
3290+
"PhysicsCar3D",
32833291
"-PedalJoystick.StickForceY()"
32843292
]
32853293
}
@@ -3301,11 +3309,11 @@
33013309
"actions": [
33023310
{
33033311
"type": {
3304-
"value": "Physics3D::PhysicsVehicle3D::SimulateSteeringStick"
3312+
"value": "Physics3D::PhysicsCar3D::SimulateSteeringStick"
33053313
},
33063314
"parameters": [
33073315
"Player",
3308-
"PhysicsVehicle3D",
3316+
"PhysicsCar3D",
33093317
"SteeringJoystick.StickForceX()"
33103318
]
33113319
}
@@ -3994,7 +4002,7 @@
39944002
},
39954003
"parameters": [
39964004
"Player",
3997-
"PhysicsVehicle3D",
4005+
"PhysicsCar3D",
39984006
""
39994007
]
40004008
}
@@ -4020,7 +4028,7 @@
40204028
},
40214029
"parameters": [
40224030
"Player",
4023-
"PhysicsVehicle3D",
4031+
"PhysicsCar3D",
40244032
"yes"
40254033
]
40264034
}
@@ -4292,8 +4300,8 @@
42924300
"worldScale": 20
42934301
},
42944302
{
4295-
"name": "PhysicsVehicle3D",
4296-
"type": "Physics3D::PhysicsVehicle3D"
4303+
"name": "PhysicsCar3D",
4304+
"type": "Physics3D::PhysicsCar3D"
42974305
},
42984306
{
42994307
"name": "Resizable",

0 commit comments

Comments
 (0)