Merge branch 'main' into SP3-20-UI-System

This commit is contained in:
maverickdgg 2023-02-04 00:24:59 +08:00
commit 4de32341e1
20 changed files with 3103 additions and 117 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1,7 @@
Name: MD_RigTest01_SkinningTest
ID: 72178939
Type: 4
Sub Assets:
Name: Cube
ID: 141097368
Type: 8

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1,7 @@
Name: MD_RigTest02_HierachyTest1
ID: 80500944
Type: 4
Sub Assets:
Name: Cube.001
ID: 135102560
Type: 8

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1,7 @@
Name: MD_RigTest03_HierachyTest2
ID: 72063399
Type: 4
Sub Assets:
Name: Cube.001
ID: 140361184
Type: 8

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1,7 @@
Name: MD_RigTest04_BakedIKLegTest
ID: 80728853
Type: 4
Sub Assets:
Name: Cube
ID: 149723808
Type: 8

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1,7 @@
Name: MD_RigTest05_MeshDeformTest
ID: 82124728
Type: 4
Sub Assets:
Name: Sphere
ID: 138773466
Type: 8

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1,7 @@
Name: MD_RigTest06_Piston
ID: 76715962
Type: 4
Sub Assets:
Name: Cube
ID: 134911040
Type: 8

View File

@ -2583,16 +2583,14 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: 0, y: 0, z: 0} Translate: {x: 0, y: 0, z: 0}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: -1.48352981, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
Mesh: 150924328 Mesh: 150924328
Material: 132690168 Material: 132690168
IsActive: true IsActive: true
Scripts: Scripts: ~
- Type: FixRotation
Enabled: true
- EID: 2 - EID: 2
Name: DoorFrame Name: DoorFrame
IsActive: true IsActive: true
@ -4280,7 +4278,7 @@
IsActive: true IsActive: true
RigidBody Component: RigidBody Component:
Type: Dynamic Type: Dynamic
Drag: 1 Drag: 0.00999999978
Angular Drag: 0.100000001 Angular Drag: 0.100000001
Use Gravity: false Use Gravity: false
Interpolate: true Interpolate: true
@ -4304,29 +4302,7 @@
Position Offset: {x: 0, y: 0.25, z: 0} Position Offset: {x: 0, y: 0.25, z: 0}
Rotation Offset: {x: 0, y: 0, z: 0} Rotation Offset: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts: ~
- Type: PlayerController
Enabled: true
respawnPoint: 239
currentState: 0
maxMoveVel: 3
moveForce: 50
sprintMultiplier: 1.5
rotationFactorPerFrame: 5
maxJumpHeight: 2
maxJumpTime: 0.75
fallMultipler: 3
lightMultiper: 0.75
mediumMultiper: 0.5
heavyMultiper: 0.25
- Type: PickAndThrow
Enabled: true
throwForce: [8, 10, 8]
cameraArmOffSet: [0, 0.25, 0]
delayTimer: 1
aimingLength: 0.5
throwItem: false
rayDistance: 0.5
- EID: 196 - EID: 196
Name: HoldingPoint Name: HoldingPoint
IsActive: true IsActive: true
@ -4367,15 +4343,7 @@
Target Offset: {x: 0, y: 0, z: 0} Target Offset: {x: 0, y: 0, z: 0}
Camera Collision: true Camera Collision: true
IsActive: true IsActive: true
Scripts: Scripts: ~
- Type: SHADE_Scripting.ThirdPersonCamera
Enabled: true
armLength: 1
turnSpeedPitch: 0.300000012
turnSpeedYaw: 0.5
pitchClamp: 45
inverseXControls: true
inverseYControls: true
- EID: 194 - EID: 194
Name: PlayerBag Name: PlayerBag
IsActive: true IsActive: true
@ -4458,21 +4426,7 @@
IsActive: true IsActive: true
NumberOfChildren: 0 NumberOfChildren: 0
Components: ~ Components: ~
Scripts: Scripts: ~
- Type: GameManager
Enabled: true
winScene: 86098106
loseScene: 91685359
currGameState: 0
totalItemCount: 0
Score: 0
timer: 200
scoreText: 237
timeText: 206
multiplierText: 238
maxMultiplierDuration: 10
maxMultiplierCombo: 10
multiplierFont: 60
- EID: 235 - EID: 235
Name: ====AI===== Name: ====AI=====
IsActive: true IsActive: true
@ -4490,9 +4444,9 @@
RigidBody Component: RigidBody Component:
Type: Dynamic Type: Dynamic
Drag: 0.00999999978 Drag: 0.00999999978
Angular Drag: 0.00999999978 Angular Drag: 0.100000001
Use Gravity: true Use Gravity: true
Interpolate: false Interpolate: true
Sleeping Enabled: true Sleeping Enabled: true
Freeze Position X: false Freeze Position X: false
Freeze Position Y: false Freeze Position Y: false
@ -4513,18 +4467,7 @@
Position Offset: {x: 0, y: 0.899999976, z: 0} Position Offset: {x: 0, y: 0.899999976, z: 0}
Rotation Offset: {x: 0, y: 0, z: 0} Rotation Offset: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts: ~
- Type: Homeowner1
Enabled: true
waypointsPool: 234
patrolSpeed: 1
chaseSpeed: 2
turningSpeed: 5
sightDistance: 8
eyeOffset: [0, 1.64999998, 0]
distanceToCapture: 0.5
captureTime: 0.5
footstepSFXIntervalMultiplier: 0.5
- EID: 234 - EID: 234
Name: ====WaypointPool==== Name: ====WaypointPool====
IsActive: true IsActive: true
@ -4598,7 +4541,7 @@
RigidBody Component: RigidBody Component:
Type: Dynamic Type: Dynamic
Drag: 0.00999999978 Drag: 0.00999999978
Angular Drag: 0.00999999978 Angular Drag: 0.100000001
Use Gravity: true Use Gravity: true
Interpolate: true Interpolate: true
Sleeping Enabled: true Sleeping Enabled: true
@ -4621,13 +4564,7 @@
Position Offset: {x: 0, y: 0, z: 0} Position Offset: {x: 0, y: 0, z: 0}
Rotation Offset: {x: 0, y: 0, z: 0} Rotation Offset: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts: ~
- Type: Item
Enabled: true
Score: 50
currCategory: 1
density: 1
dontReturn: false
- EID: 227 - EID: 227
Name: Mesh_Cheese Name: Mesh_Cheese
IsActive: true IsActive: true
@ -4645,7 +4582,7 @@
RigidBody Component: RigidBody Component:
Type: Dynamic Type: Dynamic
Drag: 0.00999999978 Drag: 0.00999999978
Angular Drag: 0.00999999978 Angular Drag: 0.100000001
Use Gravity: true Use Gravity: true
Interpolate: true Interpolate: true
Sleeping Enabled: true Sleeping Enabled: true
@ -4668,13 +4605,7 @@
Position Offset: {x: 0, y: 0, z: 0} Position Offset: {x: 0, y: 0, z: 0}
Rotation Offset: {x: 0, y: 0, z: 0} Rotation Offset: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts: ~
- Type: Item
Enabled: true
Score: 500
currCategory: 2
density: 1
dontReturn: false
- EID: 65778 - EID: 65778
Name: Mesh_Apple Name: Mesh_Apple
IsActive: true IsActive: true
@ -4692,7 +4623,7 @@
RigidBody Component: RigidBody Component:
Type: Dynamic Type: Dynamic
Drag: 0.00999999978 Drag: 0.00999999978
Angular Drag: 0.00999999978 Angular Drag: 0.100000001
Use Gravity: true Use Gravity: true
Interpolate: true Interpolate: true
Sleeping Enabled: true Sleeping Enabled: true
@ -4715,13 +4646,7 @@
Position Offset: {x: 0, y: 0, z: 0} Position Offset: {x: 0, y: 0, z: 0}
Rotation Offset: {x: 0, y: 0, z: 0} Rotation Offset: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts: ~
- Type: Item
Enabled: true
Score: 10
currCategory: 0
density: 1
dontReturn: false
- EID: 229 - EID: 229
Name: ====ScoreZonePool==== Name: ====ScoreZonePool====
IsActive: true IsActive: true
@ -4739,9 +4664,9 @@
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
RigidBody Component: RigidBody Component:
Type: Static Type: Dynamic
Drag: 0.00999999978 Drag: 0.00999999978
Angular Drag: 0.00999999978 Angular Drag: 0.100000001
Use Gravity: true Use Gravity: true
Interpolate: true Interpolate: true
Sleeping Enabled: true Sleeping Enabled: true
@ -4764,9 +4689,7 @@
Position Offset: {x: 0, y: 0, z: 0} Position Offset: {x: 0, y: 0, z: 0}
Rotation Offset: {x: 0, y: 0, z: 0} Rotation Offset: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts: ~
- Type: ScoringZone
Enabled: true
- EID: 225 - EID: 225
Name: ScoreZone Name: ScoreZone
IsActive: true IsActive: true
@ -4778,9 +4701,9 @@
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
RigidBody Component: RigidBody Component:
Type: Static Type: Dynamic
Drag: 0.00999999978 Drag: 0.00999999978
Angular Drag: 0.00999999978 Angular Drag: 0.100000001
Use Gravity: true Use Gravity: true
Interpolate: true Interpolate: true
Sleeping Enabled: true Sleeping Enabled: true
@ -4803,9 +4726,7 @@
Position Offset: {x: 0, y: 0, z: 0} Position Offset: {x: 0, y: 0, z: 0}
Rotation Offset: {x: 0, y: 0, z: 0} Rotation Offset: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts: ~
- Type: ScoringZone
Enabled: true
- EID: 224 - EID: 224
Name: ScoreZone Name: ScoreZone
IsActive: true IsActive: true
@ -4817,9 +4738,9 @@
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
RigidBody Component: RigidBody Component:
Type: Static Type: Dynamic
Drag: 0.00999999978 Drag: 0.00999999978
Angular Drag: 0.00999999978 Angular Drag: 0.100000001
Use Gravity: true Use Gravity: true
Interpolate: true Interpolate: true
Sleeping Enabled: true Sleeping Enabled: true
@ -4842,9 +4763,7 @@
Position Offset: {x: 0, y: 0, z: 0} Position Offset: {x: 0, y: 0, z: 0}
Rotation Offset: {x: 0, y: 0, z: 0} Rotation Offset: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts: ~
- Type: ScoringZone
Enabled: true
- EID: 223 - EID: 223
Name: ScoreZone Name: ScoreZone
IsActive: true IsActive: true
@ -4856,9 +4775,9 @@
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
RigidBody Component: RigidBody Component:
Type: Static Type: Dynamic
Drag: 0.00999999978 Drag: 0.00999999978
Angular Drag: 0.00999999978 Angular Drag: 0.100000001
Use Gravity: true Use Gravity: true
Interpolate: true Interpolate: true
Sleeping Enabled: true Sleeping Enabled: true
@ -4881,9 +4800,7 @@
Position Offset: {x: 0, y: 0, z: 0} Position Offset: {x: 0, y: 0, z: 0}
Rotation Offset: {x: 0, y: 0, z: 0} Rotation Offset: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts: ~
- Type: ScoringZone
Enabled: true
- EID: 222 - EID: 222
Name: ScoreZone Name: ScoreZone
IsActive: true IsActive: true
@ -4895,9 +4812,9 @@
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
RigidBody Component: RigidBody Component:
Type: Static Type: Dynamic
Drag: 0.00999999978 Drag: 0.00999999978
Angular Drag: 0.00999999978 Angular Drag: 0.100000001
Use Gravity: true Use Gravity: true
Interpolate: true Interpolate: true
Sleeping Enabled: true Sleeping Enabled: true
@ -4920,6 +4837,86 @@
Position Offset: {x: 0, y: 0, z: 0} Position Offset: {x: 0, y: 0, z: 0}
Rotation Offset: {x: 0, y: 0, z: 0} Rotation Offset: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: Scripts: ~
- Type: ScoringZone - EID: 217
Enabled: true Name: ===Anims===
IsActive: true
NumberOfChildren: 4
Components: ~
Scripts: ~
- EID: 221
Name: Obj1
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 0.301929057, y: 0.912136197, z: -9.20810795}
Rotate: {x: 0, y: 1.57079637, z: 0}
Scale: {x: 0.100000024, y: 0.100000024, z: 0.100000024}
IsActive: true
Renderable Component:
Mesh: 141097368
Material: 117923942
IsActive: true
Animator Component:
Rig: 72178939
Clip: 72178939
IsActive: true
Scripts: ~
- EID: 219
Name: Obj3
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 2.48987007, y: 0.868837833, z: -9.20810795}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 0.113750041, y: 0.113750041, z: 0.113750041}
IsActive: true
Renderable Component:
Mesh: 149723808
Material: 117923942
IsActive: true
Animator Component:
Rig: 80728853
Clip: 80728853
IsActive: true
Scripts: ~
- EID: 218
Name: Obj2
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 1.47563028, y: 0.454107046, z: -9.20810795}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 0.0350000113, y: 0.0350000113, z: 0.0350000113}
IsActive: true
Renderable Component:
Mesh: 135102560
Material: 117923942
IsActive: true
Animator Component:
Rig: 80500944
Clip: 80500944
IsActive: true
Scripts: ~
- EID: 220
Name: Obj4
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: -0.050871402, y: -0.0112784812, z: -8.23628521}
Rotate: {x: 0, y: -1.57079601, z: 0}
Scale: {x: 0.318530291, y: 0.318552583, z: 0.318530291}
IsActive: true
Renderable Component:
Mesh: 134911040
Material: 117923942
IsActive: true
Animator Component:
Rig: 76715962
Clip: 76715962
IsActive: true
Scripts: ~

View File

@ -245,10 +245,9 @@ namespace SHADE
} }
else else
{ {
mask = static_cast<uint16_t>(std::stoi(maskString));
for (int i = 0; i < SHCollisionTag::NUM_LAYERS; ++i) for (int i = 0; i < SHCollisionTag::NUM_LAYERS; ++i)
{ {
const bool LAYER_STATE = mask & 1U << i; const bool LAYER_STATE = maskString[i] == '1';
collisionTags[tagIndex].SetLayerState(i, LAYER_STATE); collisionTags[tagIndex].SetLayerState(i, LAYER_STATE);
} }
} }