0 votes

I have
- Player(RIgidBody with rectangle collision shape)
- Ground Spawner( this is for spawning ground one after another )

Here ground is a StaticBody2D with a rectangle collision shape

When I apply set_linear_force toward X-axis to the Player, Player moves forward.
It's alright. But, sometime Player gets hit by the ground and Player flies away.

I have tried different collision shapes like CapsuleShape2D, CollisionPlolygone2D none is solving the problem!

What should I do?

asked Jan 11 in Engine by dzeroone (12 points)

1 Answer

0 votes

If the ground pieces appears always on the same place, you can add them all and just turn visibility and shapes trigger mode.

Try with a kinematic body too instead of static, it may be more spawn friendly.

answered Jan 11 by eons (1,855 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 How to use this Q&A? before posting your first questions.