Example #1
0
 public void ApplyDescription(ref TypeBatch batch, int bundleIndex, int innerIndex)
 {
     ConstraintChecker.AssertUnitLength(LocalBasisA, nameof(TwistServo), nameof(LocalBasisA));
     ConstraintChecker.AssertUnitLength(LocalBasisB, nameof(TwistServo), nameof(LocalBasisB));
     ConstraintChecker.AssertValid(ServoSettings, SpringSettings, nameof(TwistServo));
     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 <TwistServoPrestepData> .Get(ref batch.PrestepData, bundleIndex), innerIndex);
Example #2
0
 public void ApplyDescription(ref TypeBatch batch, int bundleIndex, int innerIndex)
 {
     Debug.Assert(MaximumOffset >= MinimumOffset, "LinearAxisLimit.MaximumOffset must be greater than or equal to LinearAxisLimit.MinimumOffset.");
     ConstraintChecker.AssertUnitLength(LocalAxis, nameof(LinearAxisLimit), nameof(LocalAxis));
     ConstraintChecker.AssertValid(SpringSettings, nameof(LinearAxisLimit));
     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 <LinearAxisLimitPrestepData> .Get(ref batch.PrestepData, bundleIndex), innerIndex);
Example #3
0
 public void ApplyDescription(ref TypeBatch batch, int bundleIndex, int innerIndex)
 {
     ConstraintChecker.AssertUnitLength(AxisLocalA, nameof(SwingLimit), nameof(AxisLocalA));
     ConstraintChecker.AssertUnitLength(AxisLocalB, nameof(SwingLimit), nameof(AxisLocalB));
     Debug.Assert(MinimumDot >= -1f && MinimumDot <= 1f, "SwingLimit.MinimumDot must be from -1 to 1 inclusive.");
     ConstraintChecker.AssertValid(SpringSettings, nameof(SwingLimit));
     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 <SwingLimitPrestepData> .Get(ref batch.PrestepData, bundleIndex), innerIndex);
Example #4
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);