New answers tagged

3 votes

How to find vector representing altitude of a triangle?

You can do this more simply. This vector in green is just AC with the portion parallel to AB removed. So: ...
user avatar
  • 115k
1 vote
Accepted

How to find vector representing altitude of a triangle?

Given the input vectors ...
user avatar
  • 126
0 votes

Change sprite angle on sloping ground

Depending on your movement logic, you could approximate the slope angle depending on the relative direction your character is moving towards: ...
user avatar
  • 4,240
2 votes
Accepted

How to calculate coefficient for how much a object with velocity x is moving towards point a?

Take the position of the two objects, and use that to find a vector that represents the difference of their positions. ...
user avatar
  • 2,934
0 votes

How to calculate coefficient for how much a object with velocity x is moving towards point a?

I ended up with something like this in Unity: ...
user avatar
3 votes

How to calculate coefficient for how much a object with velocity x is moving towards point a?

There are two vectors: the speed of the object and the direction of the object to the target point. Our goal is to calculate how "consistent" these two vectors are. You can calculate the ...
user avatar
  • 1,381

Top 50 recent answers are included