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.

167 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
1 answer
1k views

Creating a Roguelike game in C

I'm trying to create a simple rogue-like game in ncurses in a C program. The idea here is that, I'd parse a file like this: ...
TTEd's user avatar
  • 159
4 votes
1 answer
2k views

How can I move a vehicle using speed and steering angle?

I want to drive a vehicle in x and y coordinate area with range from (0,0) to (6000,5000). I am using Visual Components (using Python API). On input I have speed data and steering angle of wheels ...
Haroon's user avatar
  • 41
4 votes
1 answer
248 views

Issues with player movement and character interaction within Pygame

I am working on a small game that deals the main character, which is a cat, and dogs that chase it. The dogs are able to wander around like they are supposed to do, but the cat will only move a small ...
Taylor's user avatar
  • 41
4 votes
1 answer
289 views

Correct order of entity updates and collision detection

I'm trying to simulate a number of units walking in a single file. My update loop looks like this: ...
Can's user avatar
  • 141
3 votes
0 answers
100 views

Calculate the aircraft's movement path in which its side speed is required

I am working on an implementation problem in which given an aircraft and the objective of the system is to find the quickest route (optimal in terms of time) from point A (contains the information of ...
IndyKuma's user avatar
3 votes
0 answers
316 views

How to properly write "stick to surface" character logic that handles unexpected large time deltas?

I've been trying to wrap my head around this issue: in a 2D platformer game (but this may as well apply to 3D games) I want the character to "stick" to the surface that it's moving along and at the ...
mt_'s user avatar
  • 576
2 votes
0 answers
380 views

What's the best strategy for incorporating jumps into a 3D AI navigation algorithm?

I'm trying to make a game centered around chase sequences in a 3D level with a high degree of verticality and movement options for the player. Basically think Breath of the Wild in an urban landscape ...
Austin Capobianco's user avatar
2 votes
0 answers
840 views

Fix slow and weird diagonal movement on slopes in Godot 3D?

I am creating a 3rd-person player controller using move_and_slide_with_snap in the style of WoW, so the player's speed should be the same horizontally no matter what the slope of the terrain they're ...
doctordingus's user avatar
2 votes
1 answer
2k views

Using UPawnMovementComponent to control a Pawn with Keyboard sharing code between Pawns

I've just started to learn Unreal and reading the tutorial Components and Collisions I have found that they use the UPawnMovementComponent to control their ...
VansFannel's user avatar
2 votes
2 answers
414 views

Interpolation on Rigidbody2D not working

I'm trying to achieve smooth movement for a ball. I seem to be failing to achieve this and now I've created a sample scene, which shows my setup from the game and the problem exists in that sample ...
iQew's user avatar
  • 470
2 votes
0 answers
145 views

Camera that follows a target with sub-pixel movement

As the title says, I have a character that moves at sub pixel movement (no, I can't change this, because this sub pixel movement happens when I normalize the vector during diagonal movements, ...
iLikeKFC's user avatar
2 votes
0 answers
945 views

unity lag while moving a sprite

I'm trying to build a 2D game for android and after I finished developing the game I noticed that there was lag present when moving objects around. I tested it on a phone much more powerful than my ...
HotShot's user avatar
  • 21
2 votes
0 answers
1k views

3 Button Multi-touch for Android

OK, my multi-touch system was somewhat convoluted, but was working perfectly OK until I tried to run my game on my Nexus 10 which is running Jellybean. Crashing all over the place! So I removed my ...
BungleBonce's user avatar
  • 1,927
1 vote
0 answers
25 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
1 vote
0 answers
47 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
1 vote
0 answers
35 views

How to efficiently move a unit to a given 2D target position using tank controls?

I am looking for a simple algorithm that can move a unit as fast as possible to a given target position. The unit can only move using the "tank controls": it can turn in both directions and ...
tigrou's user avatar
  • 3,214
1 vote
0 answers
27 views

Relaitve Velocity Obstacles

I am reading Reciprocal Velocity Obstacles for Real-Time, Multi-Agent navigation and I have trouble to understand the main part of the paper: Let's take an example,...
dgan's user avatar
  • 131
1 vote
1 answer
79 views

Rotating a command relative to the body of a drone

Suppose you have a drone the shape of a cube with rotors on each face, it's completely unable to control its roll-pitch-yaw, but it can accelerate along any of its 3D orthogonal vectors (see image ...
SMITHY's user avatar
  • 11
1 vote
1 answer
101 views

Rectangular Collision Resolution behaving incorrectly on corners

I'm currently writing a simple game engine and encountered an error while trying to resolve rectangular collisions. When an object moves diagonally and collides with a solid object I only correct it ...
Fundudeone's user avatar
1 vote
1 answer
740 views

Vertex Displacement Shader Graph With The Camera Moving Issue

I have a foliage sway shader, that works well. But when the camera moves the vertex displacement stops: And the weird thing also is that if I move the camera to the right nothing seems to happen, ...
Kinan GH's user avatar
1 vote
0 answers
2k views

Pixel-perfect jitter-free motion

Here's a thing I cannot wrap my head around: When we are talking about low-resolution pixel art, there is a subcategory that deals with pixel perfection: Like in the olden days you are restricted to a ...
Cerno's user avatar
  • 111
1 vote
1 answer
706 views

Simulating movement input in server-side, with different tick rates

I'm designing a simple MMO game server with the help of ENet (reliable UDP library) and the Godot engine for client-side. I've read tons of articles, guides, stack exchanges questions regarding ...
Mdr's user avatar
  • 11
1 vote
0 answers
102 views

Calculate 2d rotation to target (uniformly accelerated rotation, constant speed)

I'm trying to calculate an uniformly accelerated rotation for the autopilot module in my 3d space game shooter. The autopilot should fly the spaceship to any given point in the 3d space on the ...
user2850375's user avatar
1 vote
0 answers
285 views

How to move game pieces in checkers?

I have been creating a 3D Checkers board game via Unity. So far, I have managed to create the board game, with its game pieces well positioned into their designated rows and tiles upon starting to ...
Zweli Mbona's user avatar
1 vote
0 answers
118 views

how can I normalize the speed of a polygon moving over a series of connected quadratic bezier curves with varying lengths?

I am generating a bunch of quadratic curves that are connected together, creating an array of curves, and a function which returns the position on the curve for a given time. ...
patrick's user avatar
  • 209
1 vote
1 answer
952 views

How to use SmoothDamp with speed?

I have a moving platform which is being moved like this: ...
UnityHlep's user avatar
1 vote
0 answers
47 views

User input scheme of 2d vector field on a 2d plane for navigation

I want to create a strategy game based on distributions of "units" which can be moved around and attack each other. By distribution of units i mean that i don't have any discrete units ...
worldsmithhelper's user avatar
1 vote
0 answers
170 views

Large values for Rigidbody Velocity (UNITY3D)

I'm making a simple FPS game. I've come across this problem that I am unable to solve for quite some time. If this is question has already been asked before then do let me know. The problem at hand is ...
TA_800's user avatar
  • 11
1 vote
0 answers
120 views

player softbody

I need some help with a softbody mechanic on a player in unity and I don't know how to approach it yet. I want to try rigidbody collision on individual sections of the mesh, or mess with the cloth ...
Animation Space's user avatar
1 vote
0 answers
213 views

Roguelike movement system

I'm trying to implement a roguelike movement system for my game. I'm using the ECS architecture. The requirements are: entities will have a mass, on which should slow down the entity movement ...
Yves Calaci's user avatar
1 vote
0 answers
61 views

What is the better form of movement for a vehicle that the player is inside of?

I am using unreal engine 4 to make this. Basically I have a submarine that the player can move around in and can control the submarines movement within an ocean. However I don't know the best way to ...
Alex's user avatar
  • 11
1 vote
0 answers
157 views

Artifacts on top of platform sprite only when moving

I made a floating platform in Unity which has a propeller movement animation. I attached a script I wrote to the game object that adds slight vertical and horizontal movement using the game object <...
Christopher Perry's user avatar
1 vote
1 answer
153 views

How do I move my infinite runner player when the game zone shares the screen with a match 3 game?

So I am seeking to make a Match 3 with an infinite runner element. The match 3 portions are all already totally done, but I'm running into trouble figuring out how to best approach the Runner portion. ...
Laxxia's user avatar
  • 11
1 vote
0 answers
155 views

Rolling a circle around a square

I am stuck on a simple Box2D task. I have a box and a ball (in top-down view so no gravity), and I would like the ball to roll around the box. Here is my code. Basically now I am trying to detect ...
RollingAround's user avatar
1 vote
0 answers
230 views

Junk movement with steady 60fps on Web canvas

I'm new to building games on canvas, and I'm trying to create one. But I encountered a problem with sprite movements. My sprites move is smooth, but sometimes it starts to "jump". FPS is stable 60 ...
Anton Medvedev's user avatar
1 vote
0 answers
2k views

How to get one KinematicBody2D to push another?

I am working in Godot 3, where my player is a KinematicBody2D. When I collide with a block which is also a KinematicBody2D I'd ...
DyingIsFun's user avatar
  • 1,307
1 vote
0 answers
96 views

How to implement back and forth steering behavior?

I am trying to implement some behavior for a flying enemy in my 2D platformer. The desired behavior is for the enemy to fly back and forth across the player, harrowing him. If the player was ...
DyingIsFun's user avatar
  • 1,307
1 vote
0 answers
108 views

Converging at position and angle using motor-based rigidbody movement

I am given a rigidbody positioned in \$\mathbb{R}^2\$. It is a box of length \$l\$ and height \$\epsilon\$. The position of the box's left center is described by \$\vec{p}\$, and its angle from the x-...
ctRy's user avatar
  • 11
1 vote
0 answers
138 views

Ringworld character controller

So, I'm making a sort of physics simulation in Unity involving a spinning ring to generate "gravity", and I have the ring and everything, but I've hit a snag: I have no idea how to make a character ...
Jetscooters's user avatar
1 vote
0 answers
922 views

How should the physics be on an halfpipe like in a skate game in Unity?

I am making a inline skating game. My player is skating based on the normals of the surface of the ground. But when I skate up a halfpipe it flies in the Air but doesnt comes down like it should be, ...
Daniel's user avatar
  • 141
1 vote
0 answers
540 views

Why are my wheels not moving at the same speed as my car?

I need help with some wheel rotation I set up for my game. My wheels are moving 3x faster than the acceleration speed of my car. Also, I can't work out why my car is moving so slow and the brakes not ...
Harold Tulloch's user avatar
1 vote
0 answers
341 views

3D Flight with pure local rotation without roll creep

I'm working on a flight race game with a specific constraint and cannot find a solution. Hereinbelow, an image of a test scene. My ship has a cylinder (children) in front of it from which I get a ...
Benjamin Curlier's user avatar
1 vote
0 answers
44 views

Why does my implementation of "is 2D point inside 2D polygon" have slightly different results on either side of the same axis?

My 2D game is tile-based, 16 pixels per tile. Colliders are defined by an array of points which determine a polygon. With debugging enabled (as it is in the photos) those colliders are outlined with ...
taylorthurlow's user avatar
1 vote
1 answer
2k views

What is a good approach to dynamically change actor Position?

In my card game there are 2 players with each player having a hand(a ListArray of of Cards.In this case its ...
SlavenIvanov's user avatar
1 vote
0 answers
448 views

Game Maker Studio: How to make Player Circular Movement

I want to make a player move in circular but not that he move automatic but manual. Similar like in the game Zero Refelx.
domityson's user avatar
1 vote
0 answers
173 views

Top down controller script trouble

My game features a top down camera that follows the player as he moves via virtual joystick on a cellphone screen. I want the movement of the player to always walk forward and the direction will be ...
Danny's user avatar
  • 325
1 vote
0 answers
107 views

Fixing wave-like movements when rotating an object using mouse input in Unity

I have encountered a rather odd issue with my program. The setup: In my scene, I have a GameObject which I have set as my player/character for this game. The player/character has a child GameObject, ...
DRH1469's user avatar
  • 11
1 vote
0 answers
143 views

Movement for Box2D Bodies

I'm having trouble wrapping my head around something that should be relatively simple. I'm making a breakout clone using LibGDX and Box2D. I'm also using the Ashley ECS. For movement with bodies, I ...
driima's user avatar
  • 995
1 vote
0 answers
611 views

2D Platform physics system with deltaTime

I'm implementing my physics handler in my own 2D "Platform" game. My main problem is that when the timestep ( deltaTime ) changes, maybe to some tiny lag spike or something like that, the running ...
Andrea Algeri's user avatar
1 vote
0 answers
718 views

Character Movement and Collision with Ragdoll Rigidbodies/Colliders?

I have a player character that I'm moving with a character controller script and it is moved by applying velocity to a Ridigbody. This works when I have a ...
BadmintonCat's user avatar