Making hockey pucks
Hi there. I have an idea to make my main menu act as a bunch of hockey puck, where you should be able to use the pointer to push them around (nine off them). As it is now, they go back to their original place, but I would like to be able to push a "puck" so that it can slide and push other pucks, and so on...
Any idea how to do that?
This is the link to the projekt: https://rive.app/community/files/12069-22959-jdc-website-main-menu
🤔 not sure how to achieve this one, but I'll give it a try and also take this to the team, see if they have a better answer. Just to be sure if I understand it, you want to be able to nudge the pucks around and have them stay where they get nudged to?
Yes. You should be able to nudge them, so they slide, hit each other and come to a stop. Just as if they were 9 hockey pucks on ice. Each circle will have letters on them, so they would need to rotate as well when hit...
Thanks.
Hey, sorry I've been trying something, is not quite what you need, but it might help. I attached a video and the .rev in case you're curious.
In this example the 9 pucks/balls they all have a distant constraint tied to the target in the center (they also have a rotation constraint tied to the center group, not important for now) That group in the center have a translation constraint that is also tied to the target in the center and that target is the one reacting to the cursor with the pointer move
I couldn't figure out a way to make each puck individually react to the cursor and create the push of the other pucks. But now the one in the middle push the other outside to a certain point and they stay in that position.
There's one last thing that is more manual work, but maybe serve the purpose, is just add "Distance" keyframes (from the distance constraint) in a couple of timelimes and iterate between states in a new state machine layer. Hope some of all this makes sense and help and let me know if you have any further questions.