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

@ -138,15 +138,15 @@ PART
MODULE
{
name = ModuleRestockLookAtConstraint
name = ModuleRestockConstraints
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = Suspension1
targetName = Suspension2
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = Suspension2
targetName = Suspension1

View File

@ -235,67 +235,51 @@ PART
MODULE
{
name = ModuleRestockLookAtConstraint
name = ModuleRestockConstraints
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = Link1
targetName = Link1Target
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = Link2
targetName = Link2Target
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = SuspensionPiston
targetName = SuspensionPistonTarget
}
CONSTRAINLOOKFX
LOOKATCONSTRAINT
{
rotatorsName = SuspensionCylinder
targetName = SuspensionCylinderTarget
}
}
MODULE
{
name = FXModuleConstrainPosition
matchRotation = true
matchPosition = false
CONSTRAINFX
COPYROTATIONCONSTRAINT
{
moversName = LowerBracket
rotatorsName = LowerBracket
targetName = UpperBracket
}
CONSTRAINFX
COPYROTATIONCONSTRAINT
{
moversName = SteeringPivotFollower
rotatorsName = SteeringPivotFollower
targetName = SteeringPivot
}
}
MODULE
{
name = FXModuleConstrainPosition
matchRotation = false
matchPosition = true
CONSTRAINFX
COPYPOSITIONCONSTRAINT
{
moversName = WheelMesh
targetName = WheelPivotFollower
}
CONSTRAINFX
COPYPOSITIONCONSTRAINT
{
moversName = WheelMeshBusted
targetName = WheelPivotFollower