Questions tagged [collider]
Colliders are geometric proxies used in collision detection. Colliders are usually simple shapes (e.g. spheres, boxes, capsules, and their 2D counterparts) that work best with collision detection algorithms compared to the high-poly 3D meshes they approximate alone or combined.
183 questions
0
votes
2
answers
112
views
When should an object with a collider have a rigidbody?
I had some questions about Physics / Rigidbody in Unity.
I have a 2D sprite with a collider. The 2D sprite is simply a card that I place on a table with the mouse. I use the collider for raycasting (...
0
votes
1
answer
111
views
OnTriggerEnter called without a Rigidbody
I use Unity and the player controller in the game is acting strangely. It has a Character Controller but no Rigidbody. I use CharacterController.Move to make him ...
0
votes
0
answers
77
views
Wheel collider making my car jump in Unity
I’m making a racing game in Unity and every time the car touches the ground, it just jumps. I’ve seen people complaining about it multiple times, but usually adding mass of about 2000 to the car or ...
0
votes
1
answer
76
views
Function applies unevenly to Nodes in Array
I have a player character with a knockback ability which has a certain number of charges. When the charges are depleted, the player must pass through an Area3D to ...
0
votes
1
answer
146
views
Why is my player not colliding with animated obstacles?
I can't figure this out. My obstacles have a basic box collider on them and my player has a rigidbody based controller and collsion detection is set to Continous and when obstacle hits him it just ...
0
votes
1
answer
203
views
How to get around mouse entry signal stopping at first collision?
I have a grid of Area3D objects, and when nothing is around them, they handle the mouse_entered signal exactly as I would expect. The only issue is that I also use Area3D's on other game objects, like ...
0
votes
2
answers
150
views
two colliders for same trigger are conflicting
I'm trying to detext when player goes inside and exit this house.
As the picture shows I need two colliders because the house is not an exact rectangle.
So I added two box colliders to an empty ...
0
votes
0
answers
49
views
How to implement flexible, deformable shapes?
I'm making a top-down, 2D wargame that simulates large numbers of troops fighting. Instead of taking the Total war approach and modelling each soldier individually, I represent them as 1000-man ...
0
votes
0
answers
459
views
Collision between a sprite and a rect in PyGame
I'm trying to make a simple platformer game, which has code to move the camera towards a player as they jump around.
Now I have two classes: one for the player, and one for the platform.
In the ...
2
votes
2
answers
369
views
How to make the player pass through only certain objects, but not others?
Experimenting with my 1st Unity project. It's about a top down swimmer. By toggling the swimmer's collider, he can swim under boats:
...
0
votes
1
answer
382
views
The bottom of the player capsule collider is going into the ground box collider
The bottom part of the player capsule collider is going inside the ground collider. I am using a raycast for detecting whether the plauer is grounded; an object (sphere) that is present on the bottom ...
0
votes
1
answer
291
views
Wheel Colliders falling through ground
I have read through hours of forums and tried everything, But this issue still persists. I have attached a video showing the issue as well as all of my collider settings. Any help would be appreciated....
1
vote
1
answer
2k
views
_ready(): Node not found: "Pivot/Camera" + player falls through the floor
I'm relatively new to Godot 4.0.3. I have two problems which seem to depend on each other so I put both of them into one single question.
I know, these issues have been reported multiple times on ...
0
votes
0
answers
54
views
PolygonCollider2D components do not work properly in iOS build
I'm trying to figure out why my polygon colliders default to pentagon shapes when I build my app and test it on a device.
I have a scene with some blocks you can drag around where the colliders work ...
0
votes
0
answers
130
views
Physics2D.OverlapBoxAll misses small overlap
I have a tetris-like 2D game with tiles, each made up of a sprite, a Rigidbody2D and a BoxCollider2D.
The tiles fall from the ...