Convert ModuleRestockLookAtConstrain into ModuleRestockConstraints

New module is extendable and modular, allowing constraints to be run in the expected order without relying on possibly undefined behavior
This commit is contained in:
2020-01-30 18:37:27 -08:00
parent 073b7d2948
commit 931d891644
12 changed files with 255 additions and 189 deletions

View File

@ -32,15 +32,15 @@
MODULE
{
name = ModuleRestockLookAtConstraint
name = ModuleRestockConstraints
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = Suspension1
targetName = Suspension2
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = Suspension2
targetName = Suspension1
@ -130,82 +130,69 @@
MODULE
{
name = FXModuleLookAtConstraint
name = ModuleRestockConstraints
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = Link1
targetName = Link1Target
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = Link2
targetName = Link2Target
}
}
MODULE
{
name = FXModuleConstrainPosition
matchRotation = true
matchPosition = false
CONSTRAINFX
COPYROTATIONCONSTRAINT
{
moversName = LowerBracket
rotatorsName = LowerBracket
targetName = Base
}
CONSTRAINFX
COPYROTATIONCONSTRAINT
{
moversName = SteeringPivotFollower
rotatorsName = SteeringPivotFollower
targetName = SteeringPivot
}
CONSTRAINFX
COPYROTATIONCONSTRAINT
{
moversName = WheelPivotFollower
rotatorsName = WheelPivotFollower
targetName = WheelPivot
}
}
MODULE
{
name = FXModuleLookAtConstraint
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = ShockCylinder
targetName = ShockPiston
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = ShockPiston
targetName = ShockCylinder
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = SteeringPiston1
targetName = SteeringCylinder1
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = SteeringCylinder1
targetName = SteeringPiston1
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = SteeringPiston2
targetName = SteeringCylinder2
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = SteeringCylinder2
targetName = SteeringPiston2
@ -241,27 +228,27 @@
MODULE
{
name = ModuleRestockLookAtConstraint
name = ModuleRestockConstraints
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = DamperCylinder
targetName = DamperPiston
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = DamperPiston
targetName = DamperCylinder
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = SteeringCylinder1
targetName = SteeringPiston1
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = SteeringPiston1
targetName = SteeringCylinder1