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.
1,064 questions
0 votes
2 answers
119 views
Why is my rigidbody not moving when I press the buttons? I can't see any reason it shouldn't
The "Car" in question is a plane. The question is pretty self explanatory. Here's the Car in the Hierarchy: Here's the car in the inspector: And here's the PlayerMovement script: ...
0 votes
0 answers
119 views
Why does this code behave strangely with different camera angles?
Relevant to this issue are two MonoBehaviour scripts: Actor and Player. ...
1 vote
0 answers
130 views
Original pacman hitboxes and cornering
I have been working on (somewhat) faithfully reimplementing pacman as a sideproject and means of better learning the rust framework Bevy. However, there is one part that I really cannot quite get my ...
1 vote
0 answers
70 views
How to move objects in a wavy pattern in a specific or given direction?
I'm making a bullet hell and I want to handle a variety of movement types for my bullets (waves, flying in circles, spirals, etc). I'm currently using the following to handle linear movement at a ...
2 votes
1 answer
186 views
How to adapt the Anya any-angle pathfinding algorithm to handle non-discrete start/target positions?
Recently, I have been investigating the Anya pathfinding algorithm. Anya is an optimal any-angle pathfinding algorithm. However, it works only with discrete points on the grid. Here is an excerpt from ...
0 votes
1 answer
86 views
Have enemy move toward player when spawned
Have an basic enemy prefab that when spawned, I would like it to lock to player and move toward them, with smooth rotation. However, as you can see in this video, the enemy initially moves away from ...
0 votes
0 answers
167 views
How to make an object rotate in local space then translate in world space using Raylib?
I'm trying to make a rubber duck move along the surface of a round 'world' - I should be able to rotate the duck on it's local Y axis and then move the duck forward, with the duck following the ...
0 votes
1 answer
224 views
3D Dark Souls lock-on code: Player moves around target in a spiral, not perfect circle
I'm working on a 3D game in Unity that requires lock-on, or Z, targeting found in games like Dark Souls and Legend of Zelda: Ocarina of Time. The code that I have achieves my intended goals fairly ...