Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 12 Sep 2010
Offline Last Active May 27 2015 11:00 PM

Topics I've Started

[Solved] Vector prime notation, what does it mean?

16 January 2015 - 01:03 AM

I'm trying to implement this paper:





I'm having a hard time understanding Equation (17), specifically what rk' is and where it came from.


I know that rk is the moment arm (a vector), Pb is a position (vector), jk I think is the position of joint k, and Fb and Tare vectors calculated by equations (14) and (15). What is rk' though? I don't see any mention of it anywhere in the paper. Some google searches on vector prime notation lead me to believe that a vector with the prime symbol means the vector is tranposed. But I can see the transpose symbol already uses T, so is it really saying that vector rk is tranposed?

a mouse controlled paddle (semicircle)

12 September 2010 - 11:21 AM

hi everyone. im trying to make a breakout game in c++/SDL where the paddle is a semi-circle shape (rotating around the center of the screen), and its angle o facing is controlled by moving the mouse in the direction you want it to point to. this allows for 360 degrees of freedom. everything is setup so that every frame all I have to do is calculate the new angle that the paddle should point for that frame. my function to calculate the angle is failing miserably however :)

every frame I get the relative mouse position (x, y) that the mouse moved from the last frame, then I warp the mouse back to the center of the screen. I get the correct readings for relative mouse position every frame, and its not affected by warping the mouse back to the center.

so basically everything is in place, I have all my data (current paddle's angle, mouse x and y displacement) for each frame, now what I need to do is figure out how to calculate a new angle to move the paddle.

how can I do this? my idea is if you set your X axis to the line that is perpendicular to the paddle's current facing (and y axis parallel to the paddle's current facing angle), then the only mouse displacement that will be used for determing how far to rotate the paddle will be that movement which lies on the x axis. I hope that made sense. I spent all day yesterday trying to figure this out and am failing miserably :(. for starters I just tried to set the angle of the paddle each frame to arctan( relativeMouseY / relativeMouseX ) but that doesn't seem to work either, my paddle jumps all over the place.

any help is appreciated :)