Test-rigidBodyDynamics: Corrected and improved visualisation of pendulumAndSpring

This commit is contained in:
Will Bainbridge
2023-03-03 15:51:57 +00:00
parent 9df3600f11
commit f50ff139fc
2 changed files with 36 additions and 27 deletions

View File

@ -29,18 +29,21 @@ bodies
}
outline
(
(0 0.01 0)
(0.005 0.00866025 0)
(0.00866025 0.005 0)
(0.01 0 0)
(0.00866025 -0.005 0)
(0.005 -0.00866025 0)
(0 -0.01 0)
(-0.00866025 -0.005 0)
(-0.01 0 0)
(-0.00866025 0.005 0)
(-0.005 0.00866025 0)
(0 0.01 0)
(0 0.1 0)
(0.05 0.0866025 0)
(0.0866025 0.05 0)
(0.1 0 0)
(0.0866025 -0.05 0)
(0.05 -0.0866025 0)
(0 -0.1 0)
(0 -2.5 0)
(0 -0.1 0)
(-0.05 -0.0866025 0)
(-0.0866025 -0.05 0)
(-0.1 0 0)
(-0.0866025 0.05 0)
(-0.05 0.0866025 0)
(0 0.1 0)
);
}
@ -52,21 +55,27 @@ bodies
radius 0.01;
centreOfMass (0 0 0);
transform (1 0 0 0 1 0 0 0 1) (0 -5 0);
mergeWith M;
joint
{
type rigid;
}
outline
(
(0 0.01 0)
(0.005 0.00866025 0)
(0.00866025 0.005 0)
(0.01 0 0)
(0.00866025 -0.005 0)
(0.005 -0.00866025 0)
(0 -0.01 0)
(-0.00866025 -0.005 0)
(-0.01 0 0)
(-0.00866025 0.005 0)
(-0.005 0.00866025 0)
(0 0.01 0)
(0 2.5 0)
(0 0.1 0)
(0.05 0.0866025 0)
(0.0866025 0.05 0)
(0.1 0 0)
(0.0866025 -0.05 0)
(0.05 -0.0866025 0)
(0 -0.1 0)
(-0.05 -0.0866025 0)
(-0.0866025 -0.05 0)
(-0.1 0 0)
(-0.0866025 0.05 0)
(-0.05 0.0866025 0)
(0 0.1 0)
(0 2.5 0)
);
}
}