Skip to content

Commit

Permalink
Hot-fix for 4.7.3 (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunseok-yang authored Aug 19, 2024
2 parents 9fe147d + fa411b7 commit 52a1c8f
Show file tree
Hide file tree
Showing 15 changed files with 315 additions and 309 deletions.
2 changes: 1 addition & 1 deletion Assets/Resources/PhysicsMaterials/Props.physicMaterial
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ PhysicMaterial:
m_Name: Props
dynamicFriction: 0.6
staticFriction: 0.6
bounciness: 0.0001
bounciness: 0.00001
frictionCombine: 0
bounceCombine: 0
4 changes: 3 additions & 1 deletion Assets/Scripts/Core/ObjectSpawning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,14 @@ private GameObject CreateUnitProps(in PropsType type, in Mesh targetMesh)
default:
var meshCollider = newObject.AddComponent<MeshCollider>();
meshCollider.sharedMesh = targetMesh;
meshCollider.sharedMaterial = _propsPhysicalMaterial;
meshCollider.convex = true;
meshCollider.isTrigger = false;
break;
}

var collider = newObject.GetComponent<Collider>();
collider.sharedMaterial = _propsPhysicalMaterial;

var rigidBody = newObject.AddComponent<Rigidbody>();
rigidBody.mass = 1;
rigidBody.drag = 0.25f;
Expand Down
8 changes: 3 additions & 5 deletions Assets/Scripts/Devices/Camera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,6 @@ private IEnumerator CameraWorker()
var MaxUpdateRate = (float)Application.targetFrameRate;
var messageGenerationTime = 1f / (MaxUpdateRate - UpdateRate);

Debug.Log(messageGenerationTime);

while (_startCameraWork)
{
_universalCamData.enabled = true;
Expand Down Expand Up @@ -310,10 +308,10 @@ protected void OnCompleteAsyncReadback(AsyncGPUReadbackRequest request)

lock (_asyncWorkList)
{
checked
var asyncWorkIndex = _asyncWorkList.FindIndex(x => x.request.Equals(request));
if (asyncWorkIndex >= 0 && asyncWorkIndex < _asyncWorkList.Count)
{
var asyncWorkIndex = _asyncWorkList.FindIndex(x => x.request.Equals(request));
if (asyncWorkIndex >= 0 && asyncWorkIndex < _asyncWorkList.Count)
checked
{
asyncWork = _asyncWorkList[asyncWorkIndex];
var readbackData = request.GetData<byte>();
Expand Down
Loading

0 comments on commit 52a1c8f

Please sign in to comment.