How do i calculate an object's velocity along a vector?

  • Thread starter Nanako
  • Start date
  • #1
39
0
assuming 3D space. i have an object moving in a fairly arbitrary direction. Say it's being fired in an arc, and it hits a wall.

What i want to find out is, how much of that object's velocity is "toward" the wall. Ie, if i define a direction from the object to the wall, how do i calculate its velocity in that direction

i could swear i've done this before, but i have only vague inklings left.
is vector projection what i'm looking for?
 

Answers and Replies

  • #2
249
26
assuming 3D space. i have an object moving in a fairly arbitrary direction. Say it's being fired in an arc, and it hits a wall.

What i want to find out is, how much of that object's velocity is "toward" the wall. Ie, if i define a direction from the object to the wall, how do i calculate its velocity in that direction

i could swear i've done this before, but i have only vague inklings left.
is vector projection what i'm looking for?
You need to resolve the velocity vector into two vectors! One towards the wall (perpendicular to the wall) and one parallel to the wall. You'll need to know the angle of velocity for that.
How can you do that?
 

Attachments

  • #3
39
0
i'm afraid i have no idea. i'm probably wrong, but to me that sounds like a tiny modification of the same problem

what exactly do you mean the angle of the velocity? as defined in radians or degrees relative to world up?
 
  • #4
416
169
Yes. The vector projection would work and would be the most general way to describe the direction of the velocity in relation to the direction of the wall. If the wall has a definite orientation (say, the y direction) and you know the angle that the velocity vector makes with respect to the position vector of the wall then siddarth23's suggestion is certainly the simplest way to express this component of the velocity.
 
  • #6
2,086
461
Ie, if i define a direction from the object to the wall, how do i calculate its velocity in that direction
If v is the velocity and n the normal vector than

[itex]\vec v_n = \vec n \cdot \frac{{\vec n \cdot \vec v}}{{\vec n^2 }}[/itex]

is the normal component of the velocity.
 

Related Threads on How do i calculate an object's velocity along a vector?

Replies
0
Views
1K
  • Last Post
Replies
6
Views
14K
Replies
3
Views
2K
Replies
9
Views
1K
Replies
134
Views
21K
Replies
6
Views
1K
Replies
3
Views
10K
Replies
5
Views
657
Top