去掉obi,使用自写绳索

This commit is contained in:
2026-02-23 20:51:03 +08:00
parent cb636f862d
commit 91e2309eeb
2011 changed files with 2593 additions and 190578 deletions

View File

@@ -1,15 +0,0 @@
namespace Obi
{
public class NullBackend : IObiBackend
{
#region Solver
public ISolverImpl CreateSolver(ObiSolver solver, int capacity)
{
return new NullSolverImpl();
}
public void DestroySolver(ISolverImpl solver)
{
}
#endregion
}
}

View File

@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 821d5c08bf0f9459698d65c3aaabaf54
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,134 +0,0 @@
using UnityEngine;
using System;
namespace Obi
{
public class NullSolverImpl : ISolverImpl
{
public uint activeFoamParticleCount { private set; get; }
public void Destroy()
{
}
public void PushData()
{
}
public void RequestReadback()
{
}
public void InitializeFrame(Vector4 translation, Vector4 scale, Quaternion rotation)
{
}
public void UpdateFrame(Vector4 translation, Vector4 scale, Quaternion rotation, float deltaTime)
{
}
public IObiJobHandle ApplyFrame(float worldLinearInertiaScale, float worldAngularInertiaScale, float deltaTime)
{
return null;
}
public IObiJobHandle ApplyForceZones(ObiNativeForceZoneList zones, ObiNativeAffineTransformList transforms)
{
return null;
}
public void SetDeformableTriangles(ObiNativeIntList indices, ObiNativeVector2List uvs)
{
}
public void SetDeformableEdges(ObiNativeIntList indices)
{
}
public void SetSimplices(ObiNativeIntList simplices, SimplexCounts counts)
{
}
public void ParticleCountChanged(ObiSolver solver)
{
}
public void MaxFoamParticleCountChanged(ObiSolver solver)
{
}
public void SetRigidbodyArrays(ObiSolver solver)
{
}
public void SetActiveParticles(ObiNativeIntList indices)
{
}
public void GetBounds(ref Vector3 min, ref Vector3 max)
{
}
public void SetParameters(Oni.SolverParameters parameters)
{
}
public int GetConstraintCount(Oni.ConstraintType type)
{
return 0;
}
public void SetConstraintGroupParameters(Oni.ConstraintType type, ref Oni.ConstraintParameters parameters)
{
}
public IConstraintsBatchImpl CreateConstraintsBatch(Oni.ConstraintType constraintType)
{
return null;
}
public void DestroyConstraintsBatch(IConstraintsBatchImpl group)
{
}
public void FinishSimulation()
{
}
public IObiJobHandle UpdateBounds(IObiJobHandle inputDeps, float stepTime)
{
return null;
}
public IObiJobHandle CollisionDetection(IObiJobHandle inputDeps, float stepTime)
{
return null;
}
public IObiJobHandle Substep(IObiJobHandle inputDeps, float stepTime, float substepTime, int index, float timeLeft)
{
return null;
}
public IObiJobHandle ApplyInterpolation(IObiJobHandle inputDeps, ObiNativeVector4List startPositions, ObiNativeQuaternionList startOrientations, float stepTime, float unsimulatedTime)
{
return null;
}
public int GetParticleGridSize()
{
return 0;
}
public void GetParticleGrid(ObiNativeAabbList cells)
{
}
public void SpatialQuery(ObiNativeQueryShapeList shapes, ObiNativeAffineTransformList transforms, ObiNativeQueryResultList results)
{
}
}
}

View File

@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: f25a17b2fd1424dde851a7751e41d7b3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: