working on guts and player fpp model

This commit is contained in:
2025-06-17 23:40:21 +02:00
parent fbe3b59773
commit 9482216a11
368 changed files with 348390 additions and 2511 deletions

View File

@@ -0,0 +1,25 @@
using RebootKit.Engine.Main;
using Unity.Mathematics;
using UnityEngine;
using UnityEngine.Assertions;
namespace RebootReality.jelycho.Ropes {
public class RopesSpawnerTest : MonoBehaviour {
[SerializeField] int m_RopesCount = 10;
void Start() {
WorldContext worldContext = RR.World.Context as WorldContext;
Assert.IsNotNull(worldContext, "Invalid WorldContext");
RopesManager ropesManager = worldContext.RopesManager;
float3 startPosition = transform.position;
for (int i = 0; i < m_RopesCount; ++i) {
float3 start = startPosition + new float3(i * 1.5f, 0, 0);
float3 end = start + new float3(0, 0, 15.0f);
ropesManager.SpawnRope(start, end, true, true);
}
}
}
}