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);
Beispiel #2
0
 public void ApplyDescription(ref TypeBatch batch, int bundleIndex, int innerIndex)
 {
     ConstraintChecker.AssertUnitLength(LocalHingeAxisA, nameof(Hinge), nameof(LocalHingeAxisA));
     ConstraintChecker.AssertUnitLength(LocalHingeAxisB, nameof(Hinge), nameof(LocalHingeAxisB));
     ConstraintChecker.AssertValid(SpringSettings, nameof(Hinge));
     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 <HingePrestepData> .Get(ref batch.PrestepData, bundleIndex), innerIndex);
Beispiel #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);
Beispiel #4
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 #5
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);