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

learn more… | top users | synonyms

0
votes
2answers
30 views

Unity Vector3.MoveTowards over the span of a minute with Time.deltaTime

I'm trying to figure out how to use Time.deltaTime to let me move an object over the course of a minute. From my understanding, Vector3.MoveTowards(transform.localPosition, finish, Time.deltaTime) ...
0
votes
1answer
34 views

Choppy movement

So, I'm trying to write some code in C# XNA to make an enemy move in a random direction for 0.5 seconds, then switch direction and once again move for 0.5 seconds. However the problem I've discovered ...
0
votes
0answers
13 views

Timer fault in enemy movement

I'm currently trying to create a method in C# where the enemies on the screen move in a random direction for 0.5 seconds before changing direction. But that's where I've run into some problems. This ...
1
vote
2answers
26 views

How to get this type of movement in LibGDX?

I want objects in my game to move randomly but always from right side of the screen to the left side. The movement must be as smooth and natural as possible, like they are following a path. Can i ...
0
votes
1answer
24 views

Touch Input with Event Trigger. How to handle with it properly

Hello Community, Since this is my first post I wanted to say hello. As every beginner developer I have a lot of problems. Below one of them: I wrote simple script to control my 'Player' object: ...
1
vote
1answer
56 views

Square Based or free movement [closed]

What are the pros and cons of using a 'square' or 'space' based character movement mechanic vs using a free movement mechanic? Square/Space - Movement on a ridged grid using 'squares', 'hexagons' ...
1
vote
1answer
42 views

Coordinate System - Movement from A to B

I've got the following code snipped : var distanceFromDestinationSquared = ( Math.pow(this.orders.to.x - this.x, 2) + Math.pow(this.orders.to.y - this.y, 2)); ...
-3
votes
0answers
25 views

How to do movement controls for android device?

I am having problems with this. I am a new game developer and I am using a Unity tutorial. But I want to add touch input for car movement to left and right.How can I do this? using UnityEngine; using ...
0
votes
1answer
40 views

svg spaceship game movement 2d

I've been searching for a way to make an svg box move to all directions using js. I have seen many tutorials on how to do it grid like, but I want it so have a square that can turn, move forward, ...
1
vote
2answers
86 views

Game networking, limiting amount of movement packets

I have been developing a server/client model for a game project I am working on. Everything works great, client side prediction works, server reconciliation works. Basically, the character can move ...
0
votes
0answers
11 views

Examples of movement control by drawing paths/trajectories

Can anyone think of game examples that use the type of movement controls that Strikefleet Omega employs for mobile devices? There you basically use a swipe motion to drag a path for a unit to follow. ...
4
votes
3answers
197 views

Sphere to plane collision never rearching resting contact

I have been trying to have a sphere to plane eventually lead to the sphere coming to a resting contact, but my sphere will end up always bouncing forever. It will bounce correctly for the first few ...
0
votes
5answers
162 views

Coroutine to move to position passing the movement speed?

I'm using this coroutine to move my player to a new position. The problem is that it takes the duration as an argument instead of the speed of the object. Which makes it hard for me to make sure the ...
0
votes
0answers
10 views

My translations are not working correctly in 3D space [duplicate]

Here is part of my code. The main thing I want to do is make the world rotate properly around my camera in 3D space (which it does), and I want to have the world translate around my camera correctly ...
0
votes
0answers
46 views

Unity Rigidbody click to move issue

I'm wanting to have a script that when I click in my scene, my player will rotate and have a force added to it and will travel until it has reached the clicked point in my scene. Right now I have it ...
1
vote
1answer
78 views

Unity3d - move 3d object in an AR scene

I have an AR scene that has one AR camera, an image target and a 3D object as below. I want to move the AR object to the position of the mouse click. I have tried taking the Input.mouseposition ...
0
votes
0answers
64 views

Smooth player movement in a tile map based engine

The character is moving too much fast, it teleports! Note that a tile is 80x80. Each cell has 4 bools to say if you can go up, down, right, left. Am I doing something wrong with Lerp? This is the ...
0
votes
0answers
27 views

Object doesn't move smooth over edges?

In the last couple of days I'm experimenting a lot with Unity 3D to get a feeling about the environment and the behavior of game development. I come from a programming perspective and try to develop ...
1
vote
2answers
96 views

How to move a cube withour rolling it?

I am trying to move a cube with my keyboard on a plane surface. However, the cube always rolling instead of moving. How could I slide the cube on the plane? What I have done: I added a plane game ...
-1
votes
1answer
28 views

How to make object to stop moving

I'am making the game in Java, and I'am make the object, and she move, but i don't know how to make it stop. public class Player extends JPanel implements ActionListener, KeyListener{ // Varibles ...
0
votes
1answer
70 views

How to use multiplication operation in game render delta time?

We are using delta time like this: private static final float SPEED = 200f; // Moving pixels in one second @Override public void render(float delta) { myObject.vx += SPEED * delta; ...
0
votes
1answer
63 views

moving object in unity from a point A to point B no matter what the original position of the object is

I'm moving a Game Object in unity from point A to point B no matter what the original position of the Game Object is. Let us suppose that I have a Game Object at (0, 0, 0). But I want to move that ...
2
votes
2answers
96 views

How do I rotate and object around itself, and translate it at the same time?

I have this animated gif of my problem. I have a sprite object with a box collider, and I'm trying to rotate it around its center. My rotation script consists of this : this.transform.Rotate (0, 0, ...
2
votes
3answers
292 views

Strategy game tile and unit storage

I've recently started working on a turn based strategy game much like games from the Fire Emblem or Final Fantasy Tactics series. However, I'm running into a few problems concerning the storage of the ...
0
votes
2answers
55 views

(Unity) Physics based movement vs Straight position change

Unity provides a cool physics engine for game development and I want to utilize it in my game. Shorter version I want to use physics engine for everything else other than character movement because ...
0
votes
2answers
76 views

Doing object movement in a loop in unity

I have a Game Object at position (0, 0, 0). To move it to position (2, 2, 2), I'm using this code below - void Update () { Vector3 TargetPosition = new Vector3(2, 2, 2); transform.position = ...
0
votes
0answers
212 views

Issues with character controller (unity 4 project in unity 5)

I'm having the weirdest issues with a game me and a mate have been working on. They came up immediately after moving from the last version of Unity 4 to Unity 5. The two objects (player and enemy) ...
1
vote
1answer
57 views

Move 2d tank with independently controlled treads

I have made a tank object that knows its position, speed, rotation, and a double value ranging from 1.0 to -1.0 for each tread. I want it to move base on those values. For example, if the value for ...
1
vote
2answers
114 views

Best way to constrain character to a path?

I'm in the process of developing a level-based runner for mobile phones, and I've hit a wall when deciding which method to use to get the character to move through the level. Basically - I need my ...
0
votes
0answers
30 views

Problem with glTranslate

I'm making a scroller learning from thebennybox tutorials. In his way of scrolling he does this each loop. public void render() { // glPushMatrix(); { // draw to center ...
0
votes
1answer
250 views

Unity 2D - Pixel perfect movement using physics

I'm trying to make a game in the style of many NES games and I'd like object movement to do two things: I want to move an exact number of pixels per update. I want, for lack of a better term, ...
0
votes
1answer
70 views

Math for 2d movement with max speed?

I need some help with math in a 2d environment. I have a joystick that controls the acceleration vetor for the player figure. Its suppose to look like the ground is slippery which makes the figure ...
0
votes
1answer
48 views

how to make a sprite jump or fly and fall slowly

I'm a beginner in java and im suffering to make a 2d game. I already wrote a simple code that makes the character or the sprite jump by increment his Yposition when key is pressed and do the reverse ...
0
votes
1answer
96 views

Game mechanic player following path looks very roughly

I want my player entity to follow a path, which works, but it looks very roughly. Like it would stuck everytime. bool arrivedX = false; bool arrivedY = false; float speed = 0.06f; ...
1
vote
0answers
87 views

Libgdx simple movement with velocity [closed]

Ok so this is driving me nuts. I've followed 3 tutorials now and I'm trying to get simple velocity to work and it just doesn't want to work for me. I have an open space and I want the character to be ...
-1
votes
1answer
49 views

Sprite movement only works the first time, can't figure out why [closed]

In my libGDX game I have finally managed to get the sprite to move the way I want him to but for some reason my desired outcome only works the first time I run the code. If I try to run it again, he ...
0
votes
0answers
15 views

How can I track a leader vehicle at a specific angle and distance?

I am using Matlab and have code which allows a vehicle to find its way to certain coordinates chosen by the user. I now want to add a second vehicle which stays fixed at a specific distance and angle ...
0
votes
1answer
62 views

Adding movement to a text-based rpg battle

Outline I have the bones of a text-based RPG - the player can progress through a branching storyline and activate some simple events (recieivng/giving/trading items). As I am designing the battle ...
0
votes
1answer
48 views

How the values of h and the perpendicular had computed

How the values of h and the perpendicular had computed or taken in this answer of a previous question??? please clarify it How can I make a spline out of three points that define circular arc?
1
vote
1answer
137 views

Is sidescroller movement just offsetting the background?, MonoGame/XNA

When I make a sidescroller game and what to move my character do I just offset the background, or is there another better way?
0
votes
1answer
56 views

Equation for exponential deceleration so the objects “stops” at destination

Let's say my ship's velocity during deacceleration phase is given by: v(t) = v0 * exp(-k * t) where v0 is the speed at the time of starting deacceleration and k is arbitrary constant. My problem ...
-1
votes
1answer
70 views

How can I implement input handling into my game?

I'm making a libgdx game where the player dodges falling objects. To move the player I have it set so that on desktop he moves left and right when you press A and D respectively. I am trying to ...
0
votes
0answers
17 views

How can I increase the horizontal speed of something every N seconds in Unity and make it STAY increased? [duplicate]

I have these particles that only move horizontally and to make the game harder I would like to increase the speed of these particles every 5 or so seconds. I am not sure how to do this I am still ...
5
votes
1answer
260 views

Get normal dependent on collisions position

As I hask ask here I'm working on how my objects can move over the terrain and other objects. My proposal and also an idea in the answers was to calculate the rotation from the object with the normals ...
0
votes
0answers
71 views

Steering problem in 2d game

I am creating a little 2D non tiled top down game. The enemy uses steering behaviour for chasing player or wandering around, but I do not think my code is working as it should be. My problem is, the ...
0
votes
2answers
152 views

How to move a car over an environment

At the moment I'm writing a little OpenGL application. For now I have a car which can drive down a road. This works really good because I simply put the car on the street plane. Now let's say on the ...
0
votes
1answer
77 views

Working out velocity/time based on physical pixels moved

In my game I integrate like so: (Please assume all variables to be declared) sprite.xTimeInSeconds = 5.0; //Time in seconds it should take this object to cross screen sprite.xVelocity = ...
0
votes
1answer
132 views

Controlling roll rotation when travelling along bezier curves [Unity3D]

I am currently working on implementing a curve implementation for use in Unity which includes an editor: The aim is to get an object to follow the path represented by the curve at a constant ...
0
votes
0answers
78 views

How can I make several 2D objects move in complex pre-defined patterns?

I will be making my mobile 2D game in Unity and the objects in the game will have complicated movement. For example, there will be lots of squares (around 10-15 tiny squares) in the middle of the ...
0
votes
0answers
38 views

How to make a grid layout in Ruby (Gosu)?

So I'm attempting to make a simple Snake game. However, there's one major problem with that - I don't know how to make my playing field as a grid. So far I've split my snake into segemnts, which are ...