This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I'm new to game development and this is pretty much my first small game. I have multiple KinematicBody2D (cars) that are always moving from right to left on the screen. When I (the player) stands on the car it moves with the car just as expected. But when it stands on the front of the car, which is a slope the player acts kind of like a wall, so the car stops moving. Here is an image of what I'm trying to explain.
Car and player representation
In scenario 1 the car moves to the left, but in scenario 2 the car stands still. How can I prevent this? So the car keeps moving when I stand on its front (the slope)

in Engine by (12 points)

is the car supposed to stop?

1 Answer

0 votes

I don't know if this will work, but click the CollisionShape or polygon which is connected to the character and click the option "one way collision" and try that. Doesn't work? Try it with the car's CollisionShape, still doesn't work? You could try making the player a rigid body instead. Sorry if none of this works.

by (309 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.