Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Dahaarl |
Hey there !
I always asked myself how a 3D tennis game like Mario Tennis was coded. It’s more a thread about my curiosity that anything else (I don’t plan to make a tennis game :D)
I assume that the tennis ball (in the most cases) is not physics driven: it’s not a Rigidbody 3D.
I would say that the ball is a custom KinematicBody 3D which (base on player’s joystick input direction) trace a custom “path” and follows it. Am i right or others techniques could be used ?
In Godot, Tween nodes will be perfect for that behavior, right ? It will allows us to draw a path, set a timing to emulate a hit force, etc…
Just one technical question tho: how “arcs” and “parabols” works with the tween node ?
There are some questions already answer on that QA website but it never really explain why it is made like that.
Also how collisions will be handle through tween’s movements ? Because it forces a movement and don’t react to physics…
Is Nintendo uses some other techniques to make the game feel better ? Like a “snap player to ball” behavior when you are too far away from the ball ?
So much questions in my head