Lock a puppet to a 2d plane that moves through 2d space
I want to create 2D scrolling gameplay using a puppet where the 2D axes (for example x and y but could be any combination of axes) are a flat plane. However, I want to tilt the plane along any other axes and preserve the apparent 2d movement so the player can still use the left stick to make the puppet move up/down and left/right and jump.
For instance, as the gameplay begins, the world x/y axis forms the 2d plane but later, the plane shifts to the x/z axis or the y/x axis or some other angular axes combo such as 30 degrees off y and 50 degrees off x. All the while I want the player's control to rely on the left stick and x to jump.
Another scenario could be that the gameplay plane follows a ribbon or curved path where the y plane is unchanging but the x plane moves off the x axis by anything up to 360 degrees. During this plane shift the puppet should still be responding to expected left/right up/down jump inputs.
Does this require some math wizardry with various gadgets or can I do this using camera and puppet tweaks somehow?
-
So it looks like @JimmyJules153 might have sorted this one: https://youtu.be/uSAiaQMsQ1M
-
So it seems that @JimmyJules153's solution helps with 90 degree plane changes only and works on fixed scene axes. I still want to know how to manage this for 3 axes relative to the camera.
請登入寫評論。