The Project I am working on is a simulation of the "1976 PONG for Your Home TV" dedicated console game. This system, by Atari, offers the game in colour. The game isn't simulated anywhere and I would like to have it in my arcade. It is also the prototype project of its kind which knowledge and skills derived from will enable me to simulate other games of the period. Now, a little bit about the game that pertains to my question:
Due to the design of the game, some parameters are outside the way the Engine handles projects. What I mean by this is,
The PONG paddles have "regions" in them that, for example, sends the ball in the x direction if the point of contact occurs squarely in the center of the paddle. It does not matter what the incoming direction of the ball is nor whether or not the paddle is moving.
I have created a CollisionPolygon2D of one of the paddles with contoured surfaces representing, 45, 60, 75, and 90-degree angles from the top front to the center of the paddle and these angles in reverse to the bottom front.
To avoid confusion here, I am referring ONLY to the front of the paddle, not the top and bottom planes yet.
As in the example above, the other surfaces do the same thing.
Going from the paddle's center out to the top and bottom (along the y axis) we have:
90-degree surface returns a 0-degree (x-axis only) trajectory.
75 returns a 15,
60, a 30
45, a 45
The first thing I found out, using polygon shapes for the first time, is that the contours do effect the trajectory however, it negates the direction from which the ball contacted it, and I don't want this.
I am basically trying to get the ball to be sent in a trajectory path perpendicular to the surface the ball came into contact with, no matter what incoming trajectory the ball was before contact or whether or not the paddle is in motion..
Can this be done in Godot? I have been using 2.1.4 because there is much more in the way of tutorials and discussion than there is for 3.1.0.
Any thoughts, ideas or discussion is greatly welcomed and appreciated. I am new at this so please have some patience with me.
Thank you kindly!