Files
HauntedBloodlines/Assets/Obi/Scripts/Common/Backends/Oni/Constraints/Tether/OniTetherConstraintsImpl.cs
2025-05-29 22:31:40 +03:00

28 lines
815 B
C#

#if (OBI_ONI_SUPPORTED)
using System;
using System.Collections;
using System.Runtime.InteropServices;
namespace Obi
{
public class OniTetherConstraintsImpl : OniConstraintsImpl
{
public OniTetherConstraintsImpl(OniSolverImpl solver) : base(solver, Oni.ConstraintType.Tether)
{
}
public override IConstraintsBatchImpl CreateConstraintsBatch()
{
var batch = new OniTetherConstraintsBatchImpl(this);
Oni.AddBatch(((OniSolverImpl)solver).oniSolver, ((OniConstraintsBatchImpl)batch).oniBatch);
return batch;
}
public override void RemoveBatch(IConstraintsBatchImpl batch)
{
Oni.RemoveBatch(((OniSolverImpl)solver).oniSolver, ((OniConstraintsBatchImpl)batch).oniBatch);
}
}
}
#endif