X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TestPatterns.pde;h=d7d56254ddaa8897390ad16ec88b0d350f139ddd;hb=e0cea6008a7bdfb19012ed8f7ef1213cb553783d;hp=87d9ee2aab1e6142c9d36aece58b96d100724767;hpb=87998ff32c5973d59ee9eb13fde64f9c4bd9d770;p=SugarCubes.git diff --git a/TestPatterns.pde b/TestPatterns.pde index 87d9ee2..d7d5625 100644 --- a/TestPatterns.pde +++ b/TestPatterns.pde @@ -112,7 +112,7 @@ class TestProjectionPattern extends SCPattern { projection.reset(model) // Translate so the center of the car is the origin, offset by yPos - .translateCenter(0, yPos.getValuef(), 0) + .translateCenter(model, 0, yPos.getValuef(), 0) // Rotate around the origin (now the center of the car) about an X-vector .rotate(angle.getValuef(), 1, 0, 0)