• Support PF! Buy your school textbooks, materials and every day products Here!

Finding velocity along a vector, given velocity in xyz

  • Thread starter Bucky
  • Start date
82
0
1. Homework Statement
I am attempting to program a simulation of a ball hitting a wall (breakout, basically), and am having problem with the maths elements. I have the angle at which the object strikes the wall, and currently I am working on the seperation velocity. However, I don't know how to find this.

I have the velocity of the ball in the XYZ, but don't know how to combine these into a velocity along a vector. Also how would i then take the velocity after impact and seperate this back into the XYZ components? I think it would involve scaling the values but I'm not certain on this.


2. Homework Equations
v^2 = u^2(cos^2 a + e^2 * sin^2 a)
(I have a and e, and need u to solve the equation)


3. The Attempt at a Solution
Well...everything up till here. Using a plane->vector intersection formula (n.b = |n||b|sinA ...where n is the plane normal, b is the vector and A is the angle) to find the angle the vector makes with the plane.
 

Answers and Replies

bear in mind that N.E.L (newton's experimental law) affects only the component of velocity perpendicular to the plane, so probably your "xyz" velocities are what you need to work out components of velocity after the collision. I think your relevant equation is the result from taking this into account...

Combining components of velocity into a vector, by which I assume you mean direction and magnitude, just convert the vector in three components into a polar form. However, that's probably not so useful to you working in three dimensions as you'd need spherical polars or cylinder polars... Anyway, to get the magnitude just do pythag on the components. r = sqrt(x_component^2+y_component^2+z_component^2)

Converting the vector "back" into components is just the opposite problem, essentially converting a polar coordinate into cartesian coordinates. Do you have access to a computer or calculator to solve this problem?
 

Related Threads for: Finding velocity along a vector, given velocity in xyz

Replies
1
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
4
Views
2K
Replies
4
Views
1K
  • Last Post
2
Replies
31
Views
7K
Top