Skip to content

Commit 2b355b9

Browse files
committed
Better colliders, cache to load cliffs faster
1 parent a1ab01e commit 2b355b9

File tree

2 files changed

+29
-6
lines changed

2 files changed

+29
-6
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ TODO: Add link to YouTube video etc. when available.
88

99
... after the recording I only did:
1010

11-
- reworked `OnCollisionEnter` to use 1 method `SkeletonCollides` for all 3 enemies,
11+
- reworked `OnCollisionEnter` to use 1 method `SkeletonCollides` for all 3 enemies (during recording I already mentioned this bit of code could be better, I was just in a hurry),
1212
- fixed FPC compatilibity,
1313
- added README and screnshots,
14-
- added `.github` workflow to build the project using [GitHub Actions](https://castle-engine.io/github_actions).
14+
- added `.github` workflow to build the project using [GitHub Actions](https://castle-engine.io/github_actions),
15+
- better colliders, cache to load cliffs faster.
1516

1617
Download the compiled binaries from [snapshot release](https://github.com/castle-engine/conference-dev-days-summer-2024/releases/tag/snapshot).
1718

data/gameviewplay.castle-user-interface

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,9 @@
536536
"Url" : "castle-data:/pirates/glTF/Environment_LargeBones.gltf",
537537
"$Behaviors" : [
538538
{
539-
"$$ClassName" : "TCastleBoxCollider",
540-
"Name" : "BoxCollider4"
539+
"$$ClassName" : "TCastleMeshCollider",
540+
"Mesh" : "SceneEnvironmentLargeBones1",
541+
"Name" : "MeshCollider5"
541542
},
542543
{
543544
"$$ClassName" : "TCastleRigidBody",
@@ -547,12 +548,13 @@
547548
"LinearVelocityPersistent" : {
548549
"$$ClassName" : "TCastleVector3Persistent"
549550
},
550-
"Name" : "RigidBody6"
551+
"Name" : "RigidBody2"
551552
}
552553
]
553554
},
554555
{
555556
"$$ClassName" : "TCastleScene",
557+
"Cache" : true,
556558
"CenterPersistent" : {
557559
"$$ClassName" : "TCastleVector3Persistent"
558560
},
@@ -600,6 +602,7 @@
600602
},
601603
{
602604
"$$ClassName" : "TCastleScene",
605+
"Cache" : true,
603606
"CenterPersistent" : {
604607
"$$ClassName" : "TCastleVector3Persistent"
605608
},
@@ -647,6 +650,7 @@
647650
},
648651
{
649652
"$$ClassName" : "TCastleScene",
653+
"Cache" : true,
650654
"CenterPersistent" : {
651655
"$$ClassName" : "TCastleVector3Persistent"
652656
},
@@ -694,6 +698,7 @@
694698
},
695699
{
696700
"$$ClassName" : "TCastleScene",
701+
"Cache" : true,
697702
"CenterPersistent" : {
698703
"$$ClassName" : "TCastleVector3Persistent"
699704
},
@@ -720,7 +725,24 @@
720725
"X" : 6.4624328613281250E+000,
721726
"Z" : -8.1856822967529297E+000
722727
},
723-
"Url" : "castle-data:/pirates/glTF/Environment_Cliff4.gltf"
728+
"Url" : "castle-data:/pirates/glTF/Environment_Cliff4.gltf",
729+
"$Behaviors" : [
730+
{
731+
"$$ClassName" : "TCastleMeshCollider",
732+
"Mesh" : "SceneEnvironmentCliff44",
733+
"Name" : "MeshCollider4"
734+
},
735+
{
736+
"$$ClassName" : "TCastleRigidBody",
737+
"AngularVelocityPersistent" : {
738+
"$$ClassName" : "TCastleVector3Persistent"
739+
},
740+
"LinearVelocityPersistent" : {
741+
"$$ClassName" : "TCastleVector3Persistent"
742+
},
743+
"Name" : "RigidBody1"
744+
}
745+
]
724746
}
725747
]
726748
},

0 commit comments

Comments
 (0)