Connect Piston\slider output to advanced mover gadget to create proportional movement
From a central point (x = 0) I want the player to use the left DS4 stick to move a puppet right and left as usual. However, as the puppet moves away from x=0 so x becomes positive I want it to also move into the screen (away from the viewer) along the z axis.When the puppet moves back towards x=0 they should move back towards the screen until they are at x=0 again and z=0 and be back where they started. This should also work for negative x values but still move the player into the screen (away from the player). Whenever the puppet leaves x=0, no matter the direction, they should move into the screen.
To complicate this further, how can I make this z movement trace out a hemisphere arc so that when x= some maximum value, the z movement is at a peak too without making a linear path e.g. a v-shape? If the answer involves making a full circle that's cool because I can use physical sculpts to prevent movement beyond a half circle.
I wondered if sliders or pistons with followers on them outputting some signal might be useful here?
Is there someone maths-y at Mm or here on the forum who can help? Thank you!
-
Sounds like what you really want is to have the character follow a circle instead of moving right/left *at all*, and pushing right should simply rotate the point the character is at around some central position. I haven't really done this kind of thing before, or used half these gadgets in-person, but here's one idea:
Have a "centre" object at the pivot point. Add a rotator of some kind to it. Have another in the same group at 1 radius away. Add a tag to the second one.
Then add a follower tag to the puppet, set to follow the tag. And remove the left/right controls from the puppet, and wire them so they set the speed of the rotator to +1 for right and -1 for left.
Now, you push right and the tag is rotated around that central point, and the character follows that tag. -
'@Supposer yes something physical like that with a follower was one idea I had and I could probably make that work with some experimentation. Thank you!
I also wondered about a slider with a follower on the child that follows the puppet only on the x axis. I wondered if there was some way to make the slider's output then change the puppet's z movement in some proportional way but haven't cracked that yet.
댓글을 남기려면 로그인하세요.