Physics Questions

1

Hi devs. I'm new to game development, and I'm creating a simple game for a college assignment. However, I have encountered a problem and don't know how to fix it. I'm using a VehicleBody3D as my playe...
Howlett asked 19/9, 2023 at 11:55

1

Hi. I'm trying to use a PinJoint3D to attach RigidBody3D to StaticBody3D. And it works very weird - it doesn't keep distance (is very simple description of what happening). Here is isolated example w...
Fleeta asked 18/9, 2023 at 5:18

1

Trying to figure out movement on a planet that is a thin plane, I've got left and right working and the player stays on the plane correctly but I can't for the life of me figure out how to get the pla...
Corbie asked 16/9, 2023 at 0:9

2

I’m thinking about remaking a character controller that has been causing nothing but problems. The main problem is that it sticks to walls whenever you hold down the move because of addforce based mov...
Detritus asked 3/11, 2014 at 4:27

2

I have multiple enemy objects with multiple hitboxes around the limbs, all in the same layer. The problem with testing their vision to the player or other enemies is that the raycast will collide with...

7

I'm trying to figure out how to make a ball bounce in Godot 4.1, but I cant find anything that works. most are for Godot 3 and some are just how to add effects to ball bouncing. I did find something i...
Unscientific asked 4/8, 2023 at 14:10

4

Hi there! I'm trying to do a puzzle scene for my 2D game using tilemap for the ground and adding some structures, such as the pillars (Static bodies) and moveable blocks (Kinematic bodies), by using t...
Leotie asked 24/8, 2023 at 21:6

3

I’m making a 2d endless runner where the players has to move the character left and right and white obstacles are moving from the top to the bottom (the “pipes” are moving down, not the player up!) Bu...
Sheppard asked 30/10, 2019 at 12:38

2

I want to start adding physics into my game. for an example if i make a cube and extend it so it is in the shape of a normal building, then i shoot something at it i want a part of that building i sho...
Mastoidectomy asked 5/12, 2011 at 22:49

5

i have a 2D character movement script, and want to make it so that when a key is pressed, the character starts bouncing like a ball. unfortunately, i have no idea how to even begin working on it. cha...
Pinot asked 19/8, 2023 at 19:19

2

I hope you understand what i say because im not too good at english, But how to make adhesion like? It like connection, make two object together (in this case cell, the cell has Rigidbody, and cell wi...
Bradeord asked 18/8, 2023 at 9:46

1

Solved

I want to raycast a specific object, but i don't know exactly how, I use this code for the raycast: if (Physics.Raycast(transform.position, transform.LookAt("Player"), transform.forward) { // do...
Competition asked 3/3, 2011 at 9:2

2

I wanted to simulate celeste's hair, which are several circles that follow a path, but I don't know how to do that.
Blastomere asked 21/5, 2023 at 15:15

7

For some reason my player can't climb the slopes and their jump behavior feels very odd. I have been working on the GDQuest tutorial series and this is one of their older ones. "Create Your First 2D ...
Compendium asked 9/8, 2023 at 22:31

2

Looked through several VehicleBody3D tutorials over the web, but still no luck Problem - a car keeps trembling while driving, when turning - also gets too big right or left roll. Why it could be so? W...
Opulence asked 9/8, 2023 at 14:59

3

Hi all, I want to make an object move like a car would - to make it so that the faster the car is moving the wider the turn angle and the slower the car is moving the smaller the turn angle. Would any...
Margrettmarguerie asked 2/4, 2017 at 9:55

3

Solved

I have a pretty basic thirdperson character set up, and for some reason when it is falling, the camera jitters like crazy. the other thing is the camera sort of lags behind the player, which gives it ...
Phipps asked 19/7, 2023 at 5:21

4

How did you achieve optimization of such a large number of autonomous agents, over 500 units? I am trying to create a large number of rival cars, but the FPS drops already occur at 60 units. This is ...
Issacissachar asked 12/7, 2023 at 16:19

18

Solved

Hi, I am having a werid crash problem when deleting a Node3D with a child Area3D node. Basically I create like 30 objects with Area3D + CollisionShape3D(with a Box collision shape) per mouse click, th...
Ist asked 10/7, 2023 at 14:52

7

I was wondering if anyone could give me pseudo-code that can help me to create the trajectory for throwing grenades for a first person shooter; I do know how to make things "explode" but, I don't even...
Hopson asked 17/6, 2023 at 0:32

4

I'm working on highly comptative fast paced momentum based multiplayer 2D game, meaning that the game state is pretty carousal, first i thought about syncing player inputs, meaning that the server rec...
Willis asked 8/6, 2023 at 13:22

16

Solved

How to make a rigid body structure where you have a piece that moves and others that are attached and move by code ? Ex: The robot from star wars, the round one ( I dont like the last movies so I dont...
Signorina asked 5/6, 2023 at 18:57

2

I tried building a sort of active ragdoll, but realized there is no way in the engine to apply torque off objects origin, at a pin joint for example. If I only needed one point of rotation I could pla...
Cispadane asked 1/6, 2023 at 16:47

1

Hello, I am generating a gridmap world, I was able to create it. However I do not knowhow to give it a physics body, I have set the mask and layer to 1. set_collision_layer_value(1,true) set_collisi...
Tiliaceous asked 29/5, 2023 at 16:45

3

Solved

The documentation for ConcavePolygonShape2D says that it's better to use it instead of PolygonCollider2D when dealing with static colliders. When I use a ConcavePolygonShape2D in a ShapeCollider2D tho...
Subtile asked 15/5, 2023 at 15:20

© 2022 - 2024 — McMap. All rights reserved.