New answers tagged movement
0
votes
Why is Vector3.ProjectOnPlane() "drifting" further from desired rotation on steep slopes
I think you want something more like this:
...
0
votes
Accepted
Why is Vector3.ProjectOnPlane() "drifting" further from desired rotation on steep slopes
If you wanted to achieve a similar result without using projections, you might want to try just rotating the vector. This should be relatively easy to do knowing the normal of the plane.
I would take ...
0
votes
Accepted
Anchored Pull Function Breaks at Low Framerate
It looks like you're trying to implement a MoveTowards function. Try something more like this:
...
2
votes
Inconsistent movement / line-of-sight around obstacles on a hexagonal grid
The mistake in this post was treating any red line that crosses a hex as being equal. Those red lines are not all the same length in the Euclidean space of the player's screen (ignoring the grid).
If ...
1
vote
Accepted
Sometimes player moves too much
I fixed it by setting the player's friction to zero and just handled the deceleration by myself instead of letting the box2d handling this.
...
0
votes
Accepted
1
vote
Accepted
How to make an object move and rotate the same amount as another obejct
If I understand correctly, you have two copies of your spaceship, one that is a moving Rigidbody and one that is stationary. You want the player to walk around the stationary ship, while the camera ...
Top 50 recent answers are included
Related Tags
movement × 981unity × 315
c# × 166
2d × 148
physics × 129
java × 75
rotation × 62
mathematics × 53
vector × 53
camera × 52
c++ × 47
collision-detection × 47
xna × 44
ai × 43
sprites × 38
libgdx × 37
javascript × 31
android × 30
rigidbody × 28
3d × 26
path-finding × 26
input × 26
animation × 24
character × 22
algorithm × 21