Physics Questions

1

My game use 2d physic, but 3D graphics. The unity editor automatically generates a collider polygon using the sprite of the desired shape. If for example on a sprite a circle is drawn on a transparent...
Crosby asked 23/3, 2018 at 14:28

1

My RigidBody2D sometimes clips the corner of a TileMap tile and seems to trip over it. Both the rigid body and tiles have perfectly square shapes and it seems completely unpredictable when a clip will...
Peppergrass asked 7/3 at 16:34

15

Solved

guys im struggling over an hour on the 2d collision event. Currently I have 2 sprite’s each have a 2d boxcollider and are triggers. I have set the tag of one of the sprite’s to “player” but it still d...
Pollywog asked 8/12, 2013 at 22:13

4

Hello, i'm trying to code a top down space shooter in 3D (i did it in 2D) I have problem to rotate the ship face to the mouse pos. I dont want to use "look_at" but i need to use torque for realism. I ...
Ankylose asked 16/3 at 9:45

6

Solved

Hey all, Basically, I have a box that the player has to be able to collect. When the player “collects” it, the box will actually just instantly move to another spawnpoint, and I’ll also execute scorin...

2

Solved

Hey all so I ran into this issue here. Here’s a quick video to summarize it: Let me know if you need any more details. Thanks for your help in advance!
Bighead asked 11/5, 2017 at 6:33

3

Solved

I’ve made a player with a Character Controller, and no other Collider. I am trying to use the function OnTriggerEnter or OnTriggerStay, but it doesn’t seem to work with the Character Controller. Does ...
Guadiana asked 27/3, 2016 at 12:42

6

point-click-copy.zip3MB I'm making a project where the player moves towards the position where you click and I want the player to change to the IDLE state when they reach that position, but I seem to ...
Codd asked 3/3 at 17:54

5

My question here is the basically the title. I have a rigidbody, that will detect if it collides with something, and if it collides with the tilemap it will perform a specific operation on the tile it...
Char asked 31/1, 2023 at 0:45

3

When I add Wheel Collider i don’t see anything and I did every solution i saw like add Rigidbody, parenting but still there is nothing is there any solution for this?
Sibelle asked 10/4, 2020 at 19:22

4

Solved

So i have these boxes in my game that the player can move around and jump on top of. the player can also break these boxes in order to get the shape they want. how this works is that all the boxes are...
Sarmiento asked 5/2 at 13:22

6

Solved

Hi, I have attached a 2d collider to my game object, but when animation is playing the collider is not updating, can anyone tell me how to update collider with the animation? Thanks
Methodius asked 19/6, 2016 at 20:30

2

Solved

I need help with shape casting, I search in the documentation and I found nothing 😢. Does anyone knows how to shape casting?
Crumhorn asked 26/2 at 1:13

4

I tried to create an idle state by saying "if velocity == 0:", but I get an error saying "Invalid operands 'Vector2' and 'int' for '==' operator". It seems like it only works if you say "velocity.x" ...
Arlin asked 19/2 at 18:59

3

Solved

Hi, I am trying to check the collision between two colliders and OnCollisionEnter() doesn’t work unless one of the object is RigidBody. I can’t use Rigid Body for all the objects as it’s a way expensi...
Airwoman asked 7/11, 2010 at 6:3

10

I’m making a 2D platformer, and my player can shoot projectiles. I don’t want the projectiles to be able to collide with the player, have tried some different things, but can’t get it to work. Can any...
Pathfinder asked 14/4, 2014 at 20:47

7

I built a simple game using Unity’s built in NavMesh Agent AI system. My player has a laser that uses a raycast to apply a force to the enemy to not it back. This works… for the first couple seconds o...
Vadnais asked 8/3, 2014 at 5:30

3

Solved

I added a rigid body to a cube with no script and with a collier but instead, it falls upwards instead of downwards. I have tried changing the mass to a negative number to reverse the gravity but when...
Emolument asked 26/1, 2020 at 5:31

41

Hello! As a few people have figured it out the hard way, Godot 4 native physics is a little bit unstable in some situations. And there was even a petition 🙂 regarding returning Bullet physics back i...
Geniegenii asked 24/4, 2023 at 20:19

6

Hello, I'm a beginner on Godot and I'm trying to generate arrows on my scene that will kill the player. But too many of them are generated and and it doesn't work well at all. Any idea on why's that ?...
Epergne asked 24/1 at 22:57

3

So I’m moving kinematic rigidbodies via scripting and I want their velocity to be set appropriately as they move. Right now, if they touch other physics objects, they should influence them after touch...
Babb asked 17/8, 2013 at 17:16

4

I want to disable gravity on collision of two Rigidbody2D. First of all i dont want default collision effect by unity so i have checkd istrigger,so do i need to check istrigger for both rigdid bodies?...
Quenchless asked 27/6, 2016 at 15:41

4

I'm working on a 3D puzzle platformer game where you use gravity to your advantage and i tried to make the player slowly rotate to an angle with gravity and it only goes about half way but when i set...
Septicidal asked 24/1 at 6:11

1

I've been pulling my hair out finding why some code I have for a physics based approach to moving and rotating held objects based on the location and orientation of the player's hand in VR. I believ...
Shipowner asked 19/12, 2023 at 2:37

3

Godot Version: 4.1.3.stable Question: I created this 2D platformer and used Godot's tilemap system, I painted the collisions on the tiles in the physics layer, as shown below: The player's collisi...
Prudie asked 16/1 at 10:29

© 2022 - 2024 — McMap. All rights reserved.