All Questions
Tagged with godot collision-detection
29
questions
1
vote
1
answer
3k
views
Why is Area2D not detecting collisions?
I am making a sidescrolling shooter and I am working on the shooting mechanism.
I have two scenes, one contains a KinematicBody2D with a Sprite, position2D and a collisionshape2D and a second ...
1
vote
1
answer
370
views
How to compute the points of a CollisionPolygon2D?
Godot v3.3.1.stable.mono.official
I am trying to draw a CollisionPolygon2D programmatically but I cannot resize or write the ...
1
vote
0
answers
164
views
How to avoid CollisionShape2D bouncing which prevents Area2D detection?
Consider the player with a rectangular CollisionShape2D:
and a round enemy with a CollisionShape2D and a little bigger ...
1
vote
1
answer
96
views
How to transfrom CollisionPolygon2D according to the Vertex Shader applied to a Sprite?
Consider this:
* KinematicBody2D
- * Sprite
- * CollisionPolygon2D
And a vertex shader:
...
4
votes
1
answer
3k
views
Does collision between two Area2D work differently than collision with Rigidbody2D?
Consider a Main.tscn with:
(1) a player:
+ Player extends Area2D
|_ AnimatedSprite
|_ CollisionShape2D
The player has:
...
0
votes
0
answers
307
views
Godot raycast colliding too high
I am making an fps that uses a raycast for shooting. I used some suggestions taken from a few reddit pages, but it's mostly my own code. It was working properly, until I noticed that when you shot up ...
1
vote
1
answer
239
views
How to make collisionshape2D work from other scene in Godot?
I have created a scene which contains Area2D, CollisionShape2D & AnimatedSprite. Then I ...
0
votes
1
answer
1k
views
Godot: How do I create a temporary invincible state or invincibility frames?
My issue
I have been racking my head around how to achieve invincibility frames. Working in the Godot Engine I have considered a few methods for this:
Setting a Timer Node when damaged to trigger the ...
1
vote
1
answer
203
views
Godot 3.2 Bomb explosion doesn't affect player or npc
I finished the Godot 2D game tutorial Dodge the Creeps, and i'm adding a few additional features to reinforce the things learned and make more interesting the base game.
Basically i added a Scene ...
0
votes
1
answer
105
views
Collision quadrant in godot appears
I am learning to use godot following this video:
Collisions with Autotiles
The problem is that when I create the collision for the cliffs using tilemap, it appears me a blue quadrant indicating the ...
1
vote
1
answer
921
views
body_entered signal won't emit when rigidbody collided to rigidbody
I have multiple rigidbody object floating away in the space. When they hit each other, they push away each. I want to destroy object if they hit something, but connect body_entered signal won't ...
0
votes
1
answer
1k
views
Godot: 'is_on_floor' problem
I have a character in a basic platformer game and am having trouble.
Whenever my character stands over two tiles on a tilemap and appears to be directly colliding with them the character's ...
1
vote
0
answers
2k
views
How to get one KinematicBody2D to push another?
I am working in Godot 3, where my player is a KinematicBody2D. When I collide with a block which is also a KinematicBody2D I'd ...
5
votes
2
answers
3k
views
How can I get the specific tile in a collision with a Tilemap?
I am developing a simple platformer, I have three types of tiles right now:
Floor: does nothing on collision.
Bad: makes the player lose the game.
Good: makes the player beat the game.
I am trying ...