Beispiel #1
0
 public void ApplyDescription(ref TypeBatch batch, int bundleIndex, int innerIndex)
 {
     ConstraintChecker.AssertValid(ServoSettings, SpringSettings, nameof(BallSocketServo));
     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 <BallSocketServoPrestepData> .Get(ref batch.PrestepData, bundleIndex), innerIndex);
Beispiel #2
0
 public void ApplyDescription(ref TypeBatch batch, int bundleIndex, int innerIndex)
 {
     ConstraintChecker.AssertUnitLength(TargetRelativeRotationLocalA, nameof(AngularServo), nameof(TargetRelativeRotationLocalA));
     ConstraintChecker.AssertValid(ServoSettings, SpringSettings, nameof(AngularServo));
     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 <AngularServoPrestepData> .Get(ref batch.PrestepData, bundleIndex), innerIndex);
Beispiel #3
0
 public void ApplyDescription(ref TypeBatch batch, int bundleIndex, int innerIndex)
 {
     ConstraintChecker.AssertUnitLength(LocalAxis, nameof(LinearAxisMotor), nameof(LocalAxis));
     ConstraintChecker.AssertValid(Settings, nameof(LinearAxisMotor));
     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 <LinearAxisMotorPrestepData> .Get(ref batch.PrestepData, bundleIndex), innerIndex);