重新导入obi
This commit is contained in:
16
Assets/Obi/Scripts/Common/Backends/Null/NullBackend.cs
Normal file
16
Assets/Obi/Scripts/Common/Backends/Null/NullBackend.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Obi
|
||||
{
|
||||
public class NullBackend : IObiBackend
|
||||
{
|
||||
#region Solver
|
||||
public ISolverImpl CreateSolver(ObiSolver solver, int capacity)
|
||||
{
|
||||
return new NullSolverImpl();
|
||||
}
|
||||
public void DestroySolver(ISolverImpl solver)
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Obi/Scripts/Common/Backends/Null/NullBackend.cs.meta
Normal file
11
Assets/Obi/Scripts/Common/Backends/Null/NullBackend.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 821d5c08bf0f9459698d65c3aaabaf54
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
128
Assets/Obi/Scripts/Common/Backends/Null/NullSolverImpl.cs
Normal file
128
Assets/Obi/Scripts/Common/Backends/Null/NullSolverImpl.cs
Normal file
@@ -0,0 +1,128 @@
|
||||
using UnityEngine;
|
||||
using System;
|
||||
|
||||
namespace Obi
|
||||
{
|
||||
public class NullSolverImpl : ISolverImpl
|
||||
{
|
||||
|
||||
public void Destroy()
|
||||
{
|
||||
}
|
||||
|
||||
public void InitializeFrame(Vector4 translation, Vector4 scale, Quaternion rotation)
|
||||
{
|
||||
}
|
||||
|
||||
public void UpdateFrame(Vector4 translation, Vector4 scale, Quaternion rotation, float deltaTime)
|
||||
{
|
||||
}
|
||||
|
||||
public void ApplyFrame(float worldLinearInertiaScale, float worldAngularInertiaScale, float deltaTime)
|
||||
{
|
||||
}
|
||||
|
||||
public int GetDeformableTriangleCount()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
public void SetDeformableTriangles(int[] indices, int num, int destOffset)
|
||||
{
|
||||
|
||||
}
|
||||
public int RemoveDeformableTriangles(int num, int sourceOffset)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void SetSimplices(ObiNativeIntList simplices, SimplexCounts counts)
|
||||
{
|
||||
}
|
||||
|
||||
public void ParticleCountChanged(ObiSolver solver)
|
||||
{
|
||||
}
|
||||
|
||||
public void SetRigidbodyArrays(ObiSolver solver)
|
||||
{
|
||||
}
|
||||
|
||||
public void SetActiveParticles(ObiNativeIntList indices)
|
||||
{
|
||||
}
|
||||
|
||||
public void ResetForces()
|
||||
{
|
||||
}
|
||||
|
||||
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 GetCollisionContacts(Oni.Contact[] contacts, int count)
|
||||
{
|
||||
}
|
||||
|
||||
public void GetParticleCollisionContacts(Oni.Contact[] contacts, int count)
|
||||
{
|
||||
}
|
||||
|
||||
public void SetConstraintGroupParameters(Oni.ConstraintType type, ref Oni.ConstraintParameters parameters)
|
||||
{
|
||||
}
|
||||
|
||||
public IConstraintsBatchImpl CreateConstraintsBatch(Oni.ConstraintType constraintType)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public void DestroyConstraintsBatch(IConstraintsBatchImpl group)
|
||||
{
|
||||
}
|
||||
|
||||
public IObiJobHandle CollisionDetection(float stepTime)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public IObiJobHandle Substep(float stepTime, float substepTime, int index)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public void ApplyInterpolation(ObiNativeVector4List startPositions, ObiNativeQuaternionList startOrientations, float stepTime, float unsimulatedTime)
|
||||
{
|
||||
}
|
||||
|
||||
public void InterpolateDiffuseProperties(ObiNativeVector4List properties, ObiNativeVector4List diffusePositions, ObiNativeVector4List diffuseProperties, ObiNativeIntList neighbourCount, int diffuseCount)
|
||||
{
|
||||
}
|
||||
|
||||
public int GetParticleGridSize()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void GetParticleGrid(ObiNativeAabbList cells)
|
||||
{
|
||||
}
|
||||
|
||||
public void SpatialQuery(ObiNativeQueryShapeList shapes, ObiNativeAffineTransformList transforms, ObiNativeQueryResultList results)
|
||||
{
|
||||
}
|
||||
|
||||
public void ReleaseJobHandles()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f25a17b2fd1424dde851a7751e41d7b3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user