New answers tagged

0 votes

Why is Vector3.ProjectOnPlane() "drifting" further from desired rotation on steep slopes

I think you want something more like this: ...
user avatar
  • 114k
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 ...
user avatar
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: ...
user avatar
  • 114k
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 ...
user avatar
  • 114k
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. ...
user avatar
0 votes
Accepted

Why is my character controller deacceleration not working?

Here is the solution: ...
user avatar
  • 127
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 ...
user avatar
  • 3,495

Top 50 recent answers are included