Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | mewre |
Making ping pong game. My bat (KinematicBody2D) has several collision shapes: one for main body, and two for corners of the bat (1 and 2 on picture). How do I get to know which collision shape was hit by a ball? The ball gets put in motion by move_and_collide function.
P.S. if this is impossible with several collision shapes, then maybe there’s another way?
https://docs.godotengine.org/ru/stable/tutorials/physics/using_kinematic_body_2d.html
boruok | 2021-08-25 09:13