I’m making an attempt to copy the fish physics from Fish Volleyball.
If you’d like you’ll be able to attempt demo of the sport or watch video preview
The distinctive half is that the fish doesn’t bounce usually — as a substitute, when it touches a floor, its tail compresses like a spring beneath the fish’s weight. The fish solely bounces if the participant presses the bounce button (e.g., Area), which ought to launch that saved vitality and push the fish away from the floor.
So the specified habits is:
- On collision with a floor, the tail visually compresses, storing
“spring vitality.” - The bounce doesn’t occur mechanically — it solely triggers when the
bounce button is pressed. - The ensuing motion ought to really feel floaty (weak gravity, noticeable
drag), however the tail bounce ought to be responsive and managed.
What I attempted:
- I experimented with SpringJoint to simulate the compression and
launch. - I additionally tried a customized implementation, manually making use of forces
when grounded. - Created one thing comparable with Godot engine however was not capable of push
the ball with my character
With my restricted Unity expertise, I’m unsure which built-in elements can be greatest for this, or if it’s one thing that ought to be dealt with via customized scripts
Query:
What can be a great way to implement this “chargeable tail bounce” mechanic in Unity? Ought to I preserve working with joints, or is there a greater strategy (customized pressure logic, animation + physics combine, and so on.)?
Any recommendation, examples, and even simply pointing me towards the appropriate Unity elements can be actually appreciated.