Skip to main content

Questions tagged [movement]

A simple term for "translation", the change of position of an entity typically on the route of going from point A to point B.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Need help controlling a 2d rocket to reach target positions at velocity vector constraints

The problem: I have a rocket in a 2D space game that can apply force forwards and apply torque to turn. Now I want this rocket to reach a target point in the x,y coordinate system with a certain ...
Unsaga's user avatar
  • 1
0 votes
0 answers
41 views

Are there any games where movement tricks (e.g wavedashing) have unpredicability to them and don't have 100% clear steps for reproduction?

I'm making a game where the main movement mechanic is that you drag your mouse to make the character move. The character is a fish flopping on land. The game is a 3d-platformer. So you drag or flick ...
kyopa's user avatar
  • 133
0 votes
1 answer
71 views

Adjusting unit orientation to the terrain

I'm working on RTS game and got stuck on a pretty simple question I think, but I'm not skilled enough to find the proper answer. I don't want to use Unity built-in physics to do the job for me and I ...
AmBeam's user avatar
  • 103
1 vote
1 answer
46 views

Object moves continuously and won't stop until it hits an obstacle

So im fairly new to coding and don't know much and so I decide to improve this line of code I had before, by finding something online and now my object is constantly moving and won't stop unless it ...
Matt Sou's user avatar
0 votes
0 answers
46 views

2d top down movement physics: speed, max speed, acceleration, friction, velocity, delta

I am creating a 2d top down game and am trying to implement movement. My current approach is very simple and looks like this ...
Aeon's user avatar
  • 1
0 votes
0 answers
49 views

Why do my entities have jittery movement, where their velocities fluctuate wildly between frames?

I'm writing my own simulation for some robots. I want to utilize friction, acceleration, velocity calculations. Currently, my code looks like this: ...
NeomerArcana's user avatar
0 votes
0 answers
63 views

Why do I have to freeze my player's x and z rotation to make my player movement work and why does my camera stutter when colliding with things?

So I have an empty object called player with the PlayerMovement script and a rigidbody. I have the main camera and player visual as childs of it. The movement works ...
MrV's user avatar
  • 49
1 vote
1 answer
63 views

How to make AI Character move towards Actor Object

I have in my scene an AI Character and Actor Object, but the character won't move no matter what I've tried. You can see the current code with debug statements. I'm not sure what I'm missing because I'...
Robert the Bruce's user avatar
0 votes
2 answers
61 views

How can I implement actor velocity / acceleration with fluid changes if direction changes are small, and abrupt if the direction changes are large?

I hope the question title makes sense. I haven't been able to google for an answer because I don't know what the correct terminology I'm looking for is. Basically, I have an actor / enemy / game ...
NeomerArcana's user avatar
0 votes
1 answer
61 views

Is it possible to design character movement system with Bezier Curves?

For context, I'm trying to create a really dynamic and fast character. That can suddenly move slow, fast, zap into places, dash, and hover in place. Say that I want to make a character accelerate a ...
curiousCprogrammer1231's user avatar
0 votes
0 answers
48 views

How to make smooth movement for a tunnel traveling music game?

I'm creating a music game where the player travels inside a tunnel and can create twists and turns while listening to music. Here's a video showing what it currently looks like. I'm looking for advice ...
curiousCprogrammer1231's user avatar
0 votes
3 answers
89 views

How to make camera follow player on Y+ axis only

My player is jumping on sticks, endlessly going upwards, and if they fall, it's game over. I want the camera to follow the player only when they move up (ie. only on Y axis), not down. If they move ...
jukvox's user avatar
  • 13
0 votes
1 answer
69 views

Circle to Polygon & Circle to Circle Velocity Resolution

I am working a 2d physics engine. Polygon to polygon collision and velocity resolution works without issue, but I am struggling to get working circle to circle and circle to polygon velocity working ...
TrippR's user avatar
  • 3
0 votes
0 answers
46 views

How to move a Rigidbody forward using Bullet Physics

I'm currently developing a character controller for my game framework, and I'm utilizing the Bullet Physics engine for the physics simulation. In the process of adjusting the velocity, I aim to enable ...
Wagner Andreas's user avatar
11 votes
3 answers
3k views

How hard to brake to perfectly smoothly reach the destination?

Goal I want the get the required minimum deceleration to perfectly smoothly reach a target. (The car's AI should know how hard it has to brake to be the perfect valet.) Research "How can I ...
st_phan's user avatar
  • 213
0 votes
2 answers
113 views

Max velocity for smooth deceleration to destination

I am able to update velocity of my agent every 0.5 seconds. My agents max speed is 5f/s and max acceleration/deceleration is 2f/s. I know how far away I am from the destination. How to determine ...
Peter's user avatar
  • 13
0 votes
1 answer
115 views

My CharacterBody3D Is getting blocked by ramps that act as walls

To summarize, my ramp is acting like a wall even if it is created to have a collision and mesh that fits its shape. I have tried: Putting the max angle to 90 using different ramps (CSG & mesh) ...
NEWBIE's user avatar
  • 23
0 votes
1 answer
62 views

How to add gameTime to movement with acceleration and diagonal normalization?

I recently started rewriting my engine from scratch, because the old one was my first attempt and the structure was very messy. Everything has been going great, but now I'm being held back by some ...
Markus's user avatar
  • 1
0 votes
0 answers
20 views

Duplicated the player scene but only the running animation is not playing

First time asking a question here, so hopefully it goes well! So, I had a player scene set up with a custom state machine, for now handling the idle, run and jump stages, currently set up as nodes: ...
Pantherith's user avatar
0 votes
0 answers
77 views

How can I efficiently load and unload regions of a world as the player moves?

I am creating a game with infinite terrain. Sections of the terrain are broken up into regions of fixed size for handling (similar to chunks in Minecraft). I would like to load and unload them as ...
CPlus's user avatar
  • 143
1 vote
1 answer
82 views

Flying AI shakes when chasing and avoiding obstacles simultaneously

I've got a problem with my flying AI in Unity. When it just chases a target it's ok, but my system contains avoiding obstacles so when it starts to do it, it shakes weirdly. As I understood using <...
kotan4ik's user avatar
0 votes
1 answer
76 views

Sprite chasing a target using move_towards_ip does not move

I'm trying to get a turtle sprite to chase a falling algae sprite utilising Pygame's inbuilt functionality. I have spent many hours reviewing questions and answers and suspect I'm missing some ...
Lone's user avatar
  • 3
0 votes
0 answers
56 views

Determining meters per second in scaled terrain

I have a terrain with a width of 199 and height of 99 and I'm scaling this train by 500. What would be 1 meter in the new terrain, would it be 500? I'm trying to move my character in meters per second ...
blov's user avatar
  • 1
2 votes
1 answer
99 views

How to make redirected player movement respond to same key?

I have a 2d game (Godot 4) with different rooms with portals to go between them, and some portals redirect the direction of the player while still holding the same key. I have that working so far, but ...
value1's user avatar
  • 23
0 votes
1 answer
263 views

How to code glider movement in 2D? (Godot 4)

So in Minecraft, you have the elytra. When you look up, the character moves up. When you look down, the character moves down. The speed you move forward depends on the angle you are moving. I want to ...
Shattered Reality's user avatar
1 vote
0 answers
56 views

Move UI element by a specific amount relative to current screen resolution

I want to achieve the following: At some point in the game, the UI Image (dashed rectangle) should shift towards the right edge of the screen (black outline rectangle) up until the part of the image, ...
maoam's user avatar
  • 111
0 votes
1 answer
53 views

Why are the transform game objects moving away from the snail when they are swapping their direction?

I am making a game in which I created a character (main player) and another character(snail). Now the snail will move on the ground, when there is no ground detected it will change its direction. I ...
gamePlay's user avatar
1 vote
1 answer
52 views

KinematicBody2D stutters/moves back and forth

I'm working in Godot 3.5, and trying to set up a navigation polygon for my kinematic body to mode around inside, but when I try to send it to some point, the body 'stutters'/moves back and forth in ...
Progs's user avatar
  • 93
0 votes
1 answer
357 views

How to make enemy turn to face the player while attacking?

I need help making this code work. It is made for the enemy AI to move and patrol, chase the player and attack the player. The problem is when it starts to attack the player, then the player can move ...
Darius Van Vuuren's user avatar
0 votes
1 answer
236 views

PyGame moves object in one direction but not in the opposite one

I'm having trouble with a PyGame animation I'm writting. I have a Ball class that defines an object that moves on the screen and bounces on the edges. I initialize ...
WinterPanda's user avatar
0 votes
1 answer
89 views

How to use WASD to move camera between a collection of position marker objects?

How can I move one camera between two positions along the cardinal directions? Using W/A/S/D keys, I want to move the camera from one empty object to another on the xy plane. Those empty objects ...
nausikaa's user avatar
1 vote
1 answer
82 views

Move object continuously along y with optional movement along x

I am looking for a sensible way to continuously move an object downwards with constant speed while moving left or right by some amount x when the user presses the left or right arrow keys. Basically, ...
ChrisC's user avatar
  • 116
5 votes
1 answer
229 views

Avoiding nausea when spinning

I'm working on a top down space sim where the ship fills most of the screen and has a fixed heading, i.e. the front of the ship is always at the top. However, there are stars in the background, so ...
Max's user avatar
  • 316
0 votes
0 answers
186 views

Trying to get a Character to face the direction based keys pressed left or right instantly

I finished up my movement script which is finally working fantastically. The only issue I am having is getting the character to face the direction when I press either left or right on the keyboard. ...
Fuljin's user avatar
  • 1
0 votes
0 answers
81 views

applying gravity breaks entirely this AI movement code

I'm calling this function every 0.078 seconds so about at 13 fps using a timer connected to _ready() this way my game can easily run over 400 enemy units with ...
Cei's user avatar
  • 873
0 votes
1 answer
129 views

How to prevent accidental double-tap dodge when changing directions?

...
Cei's user avatar
  • 873
0 votes
1 answer
63 views

How do i put an entities x,y and z coordinates to a variable(?) in Blitz3D?

I'm making a TEST 3d platformer where the camera follows the player from above. Normally I would make the camera move at the same time when the player moved, for example: ...
Probes's user avatar
  • 1
0 votes
1 answer
60 views

How to carry other players and NPCs and Objects?

In my game you don't have inventory slots, you can hold two things if your player has 2 arms and so on, you can hold more things if you equip a bags on your belt or backpacks... and you can carry even ...
Cei's user avatar
  • 873
0 votes
1 answer
160 views

When to use InverseTransformDirection in Unity

I want to know when to use InverseTransformDirection. Unity documentation says : "Transforms a direction from world space to local space". Honestly, it is not clear for me. I came across ...
Achie1's user avatar
  • 179
1 vote
1 answer
369 views

Rigid bodies sliding off slopes

Kinematic bodies have a simple class that makes the player not slide on slopes, but for rigid bodies? I tried using rays and areas, either to lock the player on an axis or to just straight up disable ...
Cei's user avatar
  • 873
0 votes
1 answer
164 views

How to adjust parabolic trajectory to hit the same point with the same launch angle, but faster speed?

I'm launching a ballistic projectile similar to this sample. The projectile moves from the launch point to the target point, but it's too slow. When I try to increase the speed without changing the ...
QuestionAndroid's user avatar
0 votes
0 answers
120 views

How to implement the movement system from SharkBite Bay Adventure?

I'm using Godot Engine 4. The game SharkBite Bay Adventure is a top-down 2D car game, which can be properly played in Bluemaxima's Flashpoint (this app has 2 versions: you can download the lightweight ...
Hydroper's user avatar
  • 101
0 votes
0 answers
28 views

How to make Cardial Directions relative to the camera

Lets suppose tha my movement method my W goes towards north(just figuretvly) and my E goes towards east, If I rotate my camera to east I want my W to insted goes to north, goes towards east and my E ...
Jamelaumn's user avatar
0 votes
1 answer
46 views

Orient a player mid-air to their predicted landing orientation in Unity?

Ever played Skate 3? When dropping into a ramp, or if you're midair, your player's up direction aligns to the normal of the surface you're about to land on, while respecting the player's forward ...
AriaMath's user avatar
0 votes
1 answer
132 views

How do I make my player rotate in the current direction of my camera in Unity using C#?

I have a player with third and first person camera, I want to make my player move in the direction that my camera is looking at when I hold the right mouse in third person and move(Like my player is ...
Jamelaumn's user avatar
0 votes
0 answers
170 views

Creating enemies that slide along a patrol path

I have created a 2D game in Godot 3.5.2. I have enemy scene which has node as Area2D and child as AnimatedSprite and Collision. I want to create enemy movement like in Pixel Adventure: But I am not ...
Shantanu's user avatar
0 votes
1 answer
106 views

Mouse-Click Movement Using Unity NavMeshAgent Causes Stuttering Upon Reaching Destination

Alrighty, so I've seen a lot of stuttering-related questions about NavMeshAgents but my problem is a little specific to my use case since it has nothing to do with <...
NicCantCode's user avatar
0 votes
0 answers
67 views

Children of a rigidbody are able to move through the floor

I have a problem with rigidbody collisions atm. I have a parent object that has a rigidbody and I am spawning objects that become that parent object's child (the children are all spheres). These ...
Christian Blevens's user avatar
0 votes
0 answers
50 views

Steering Behaviors in Discrete Space

I'm interested in Steering Behaviors by Craig W. Reynolds in a project but my agents are in a discrete grid (think Minecraft). Essentially all agents internally have continuous speed, accelerations ...
Consuelo Ugarte's user avatar
0 votes
1 answer
2k views

Unreal 5 Actor Can't Move

I have an Unreal 5 actor with some basic blueprints involving a "Simple Move to Location". I've created a NavMeshBoundsVolume, and both the actor and destination point are inside it. The ...
Nightmare Games's user avatar

1
2 3 4 5
21