public sealed unsafe override void EnumerateConnectedBodyIndices <TEnumerator>(ref TypeBatch typeBatch, int indexInTypeBatch, ref TEnumerator enumerator) { BundleIndexing.GetBundleIndices(indexInTypeBatch, out var constraintBundleIndex, out var constraintInnerIndex); ref var indices = ref GatherScatter.GetOffsetInstance(ref Buffer <FourBodyReferences> .Get(typeBatch.BodyReferences.Memory, constraintBundleIndex), constraintInnerIndex);
public void ApplyDescription(ref TypeBatch batch, int bundleIndex, int innerIndex) { ConstraintChecker.AssertValid(ServoSettings, SpringSettings, nameof(OneBodyLinearServo)); Debug.Assert(ConstraintTypeId == batch.TypeId, "The type batch passed to the description must match the description's expected type."); ref var target = ref GetOffsetInstance(ref Buffer <OneBodyLinearServoPrestepData> .Get(ref batch.PrestepData, bundleIndex), innerIndex);
public void ApplyDescription(ref TypeBatch batch, int bundleIndex, int innerIndex) { ConstraintChecker.AssertUnitLength(LocalOrientation, nameof(Weld), nameof(LocalOrientation)); ConstraintChecker.AssertValid(SpringSettings, nameof(Weld)); Debug.Assert(ConstraintTypeId == batch.TypeId, "The type batch passed to the description must match the description's expected type."); ref var target = ref GetOffsetInstance(ref Buffer <WeldPrestepData> .Get(ref batch.PrestepData, bundleIndex), innerIndex);