添加插件

This commit is contained in:
2025-11-10 00:08:26 +08:00
parent 4059c207c0
commit 76f80db694
2814 changed files with 436400 additions and 178 deletions

View File

@@ -0,0 +1,64 @@
using UnityEngine;
namespace Obi
{
public interface ISolverImpl
{
#region Lifecycle
void Destroy();
#endregion
#region Inertial Frame
void InitializeFrame(Vector4 translation, Vector4 scale, Quaternion rotation);
void UpdateFrame(Vector4 translation, Vector4 scale, Quaternion rotation, float deltaTime);
IObiJobHandle ApplyFrame(float worldLinearInertiaScale, float worldAngularInertiaScale, float deltaTime);
#endregion
#region Particles
void ParticleCountChanged(ObiSolver solver);
void MaxFoamParticleCountChanged(ObiSolver solver);
void SetActiveParticles(ObiNativeIntList indices);
uint activeFoamParticleCount { get; }
#endregion
#region Rigidbodies
void SetRigidbodyArrays(ObiSolver solver);
#endregion
#region Constraints
IConstraintsBatchImpl CreateConstraintsBatch(Oni.ConstraintType type);
void DestroyConstraintsBatch(IConstraintsBatchImpl batch);
int GetConstraintCount(Oni.ConstraintType type);
void SetConstraintGroupParameters(Oni.ConstraintType type, ref Oni.ConstraintParameters parameters);
#endregion
#region Update
IObiJobHandle UpdateBounds(IObiJobHandle inputDeps, float stepTime);
IObiJobHandle CollisionDetection(IObiJobHandle inputDeps, float stepTime);
IObiJobHandle Substep(IObiJobHandle inputDeps, float stepTime, float substepTime, int steps, float timeLeft);
IObiJobHandle ApplyInterpolation(IObiJobHandle inputDeps, ObiNativeVector4List startPositions, ObiNativeQuaternionList startOrientations, float stepTime, float unsimulatedTime);
void FinishSimulation();
void PushData();
void RequestReadback();
#endregion
#region Deformable shapes
void SetDeformableTriangles(ObiNativeIntList indices, ObiNativeVector2List uvs);
void SetDeformableEdges(ObiNativeIntList indices);
#endregion
#region Simplices
void SetSimplices(ObiNativeIntList simplices, SimplexCounts counts);
#endregion
#region Utils
void SetParameters(Oni.SolverParameters parameters);
void GetBounds(ref Vector3 min, ref Vector3 max);
int GetParticleGridSize();
void GetParticleGrid(ObiNativeAabbList cells);
void SpatialQuery(ObiNativeQueryShapeList shapes, ObiNativeAffineTransformList transforms, ObiNativeQueryResultList results);
#endregion
}
}

View File

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