Physics Questions
2
I'm looking to create a movement system similar to that of The Witness or Mozilla Hubs, which involves conventional directional input and slowed motion when moving against barriers similar to that of ...
Krysta asked 29/10, 2023 at 22:54
5
extends CharacterBody2D
const MOVEMENT_SPEED = 50.0
func _physics_process(delta):
var movement = Input.get_vector("left", "right", "up", "down")
print(movement)
velocity = velocity.lerp(movemen...
Augustus asked 11/11, 2023 at 22:46
1
I am fairly new to coding in game engines, but have some mild programming experience outside of them.
I'm making a 2D game with 3D characters, so I am using the 3D environment minus the Z axis. For th...
Chalcopyrite asked 13/11, 2023 at 1:54
1
I have a level going infinitely to the left, and I'm using a StaticBody2D with a CollisionShape2D with a WorldBoundaryShape2D as the floor. This works fine until my character gets to approximately 110...
Rebutter asked 11/11, 2023 at 0:56
2
Hello,
I have a CharacterBody2D & a RigidBody2D colliding in a scene (Godot 4.1.2 Stable Mono).
When the RigidBody2D is moving above a certain speed & colliding with the CharacterBody2D, the ...
Plumy asked 6/11, 2023 at 10:8
7
I'm currently making a platformer game where I want the player to not collide with a platform made from a tile in a tilemap when they hold the down arrow, but to still be able to collide with other ti...
Constitutional asked 3/11, 2023 at 19:28
1
I am working for my first time with collisions with tile maps. I have some data that my tile provides to my character when colliding. however the issue seems to be that when my bodies only 25% collide...
Discipline asked 31/10, 2023 at 3:31
2
Solved
So I have a unique problem. I am making a game similar to Geometry Dash and so far I have implemented jumping, auto-scrolling, and part of the first level. I started to implement the death system but ...
Chinkapin asked 30/10, 2023 at 1:47
6
Solved
Hi,
I'm working on a 2d platform game. The game has spring that'll push the player to jump high. I do have it working now but the problem is, the spring is not always placed on a flat platform. It cou...
Keynes asked 25/10, 2023 at 4:23
13
Hello, I am having issues with static bodies that are added to the root of the scene through code causing lag when a character body collides with them.
The player can place down these turrets which...
Corydon asked 12/10, 2023 at 3:9
6
how would i stick a rigidbody to another? im trying to make a magnet which makes things stick to it but i cant figure out how. Thanks!
Habanera asked 20/10, 2023 at 17:59
2
Hello,
I have 2 certain objects that collide with each other. One of them has a bounce property to its Physic Material, but I do not want these two objects to bounce off of each other.
Is there a func...
So asked 16/8, 2016 at 17:37
3
My Raycasts don’t work on triggers, however I have Queries hit triggers turned on in physics settings, I have also tried QueryTriggerInteraction.Collide, but that does’t work.
However if I set my trig...
Hygrothermograph asked 10/4, 2021 at 15:19
6
Hey, I'm making a 2D game where the weapons rotate around the player, kinda like how the moon rotates around the earth, I'm having trouble figuring a way to do this Please help
Utility asked 10/10, 2023 at 21:37
2
Solved
Hi there. I have a function:
apply_torque($CameraPivot.transform.basis.x*rolling_force*delta)
And I'm not sure if I should multiply by delta inside the physical functions or not. Documentation says:...
Driscoll asked 3/10, 2023 at 8:38
1
I'm trying to change the length of a GrooveJoint2D via code. Here's what I have in my gdscript _process function attached to the GrooveJoint2D
self.length -= .05
My expectation is that the length wo...
Aurelia asked 7/10, 2023 at 15:47
3
Solved
I'm working on building a physics-based pinball flipper and I'm trying to use RigidBody physics rather than manually animating or tweening the motion. Basically I'd like to apply a torque to the flipp...
Lymphoma asked 4/10, 2023 at 20:4
3
Solved
I have everything on my car but the speedometer and i just cant figure it out how to script one. so is can anyone help me out by making one? my game objects is "Car" and i just want to apply the scrip...
Isadoraisadore asked 18/4, 2010 at 18:38
16
I'm running some performance tests to understand the purpose of running physics in a separate thread. I have a benchmark scene that creates objects non-stop, in addition to that I have a system to mea...
Woermer asked 3/10, 2023 at 5:36
2
Solved
Apologies for the bad title:
I am trying to make an active ragdoll system. I have a Skeleton3D that I've generated the physical skeleton for, with a copy that plays a target animation that I would li...
Buiron asked 1/10, 2023 at 20:46
4
I found a strange behavior in the physics engine of 4.1 (not found in 3.5.x, i.e. in the Bullet engine) .
For example if we have 2 rigid bodies A and B in this configuration:
A: collision layer = 1, c...
Ludivinaludlew asked 1/10, 2023 at 12:36
3
Solved
On each wall element I added a polygon
I added CollisionShape2d to the cat (character)
I'm new to Godot and don't understand how colliders work here, I tried to create a second identical character, ...
Aorangi asked 1/10, 2023 at 19:49
4
Hi, I have a multiplayer authorative game, where the clients have no physics but needs the linear velocity of the body, I am currently sending the velocity from server to client, but in order to save ...
Hyonhyoscine asked 30/9, 2023 at 14:21
2
Solved
I have a Nav Mesh Agent and a FPS controller. I want agent to follow FPS when Fps Enter a trigger…
I tried something but it doesn’t work
using UnityEngine;
using UnityEngine.AI;
public class hedefbul...
Nolasco asked 26/1, 2020 at 20:29
4
I’m trying to reshape the collider of a Sprite, but when I go to the Sprite Editor in the Custom Physics Shape and I try to create a control point it just does not work nothing will change.
It will al...
© 2022 - 2024 — McMap. All rights reserved.