1
I have a problem that I haven’t been able to find the solution to:
I’m trying to finish a project with Unity, a simple 2D racing game, where the camera is static from above and the objects descend by gravity. This functionality nearly complete, the scripts are working properly, the car and the Power Up moving as they should, but the moment the money goes through the car is the problem, rather than crashing and disappearing adding to the score, the car is being dragged with it.
I’m sending two screenshots of the Inspector of the car and the money.
Link to the video lesson of this project that I am basing myself on.
At the end of this class, the author refers to marking Is Kinematic to solve the collision of the objects "car", "money".
First thing your money object should be Rigger because when you hit the car it will not reduce the speed of it If possible send a print of the code to see if the problem is there
– Gabriel Augusto
Gentlemen, thank you for your answers. But I still haven’t been able to solve this small detail. I’ll send you a link to a video lesson where I’m following. Almost at the end Nils says that to solve this collision is only to mark the option " is Kinematic " but with me this does not work https://youtu.be/wFGwk7edyYA
– Jhonny Summer
I could post a comment to Nils with the link of your question here, I believe he has not seen.
– Math