Swinging String Attached to Mouse Cursor: Vectors Explored

In summary, if you want to swing a ball around freely, you should first model the forces acting on it- gravity and tension. Next, you should let the cursor accelerate, and finally add the drag and frictional forces.
  • #1
phaelax
4
0
I'm trying to write a program where a piece of string is attach to the mouse cursor, and the other end has a ball on it. I want to be able to swing it around freely, but I'm not sure how to figure all the vectors. So far, I have 2 force vectors, gravity and the mouse cursor. Any ideas where else I can start?
 
Physics news on Phys.org
  • #2
The two forces that act on the ball is tension and gravity. The gravity force vector should always point from the ball downwards, and the tension force vector should always point from the ball towards the cursor (assuming the string is to remain straight at all times).

If you are allowing the string to stretch, you can treat it as a spring, in which case the magnitude of its force is proportional to the elongation of the string. If it's not allowed to stretch the magnitude of the force would vary depending on the position of the ball and its motion, with a maximum allowed tension so the string will be torn if the limit is exceeded.
 
  • #3
So if I were to move the cursor to the left, pulling the string, the ball at the end would swing back and forth when I stop moving the cursor. How would I do that? Since gravity is always pulling down on it, I know its got to have something to do with gradually slowing the swinging.
 
  • #4
Well, theoretically the swinging should not stop. In real life it does, due to friction... but are you going to account for that as well?
 
  • #5
The ball will be swinging in the air. So the only thing that could affect it is wind or gravity, right?
 
  • #6
phaelax said: "Since gravity is always pulling down on it, I know its got to have something to do with gradually slowing the swinging."

Gravity doesn't make the ball stop swinging back and forth, in fact without gravity, it wouldn't swing back and forth at all. The only thing that would make it stop swinging is friction at the point where the cursor is attached to the string, and as you said, wind, or the drag caused by the ball moving through the air. But trust me here, you don't want to mess with that yet! If I were you, I'd do this in 3 steps.

1) Don't let the cursor move, and just model two forces: gravity (constant and always down) and tension (magnitude T and always along the direction of the string). You can get help from people here on how to calculate T if you can't figure it out.

2) Now let the cursor accelerate

3) Now add the drag and frictional forces.

If you can make it through #1 you will have learned quite a bit of physics, and it will be pretty cool

If you can make it through #2, you will have learned A LOT of physics and it will be VERY cool! (And I'll want a copy!)

So let us know how it goes.
 
Last edited:

FAQ: Swinging String Attached to Mouse Cursor: Vectors Explored

What is the "Swinging String Attached to Mouse Cursor" experiment?

The "Swinging String Attached to Mouse Cursor" experiment is a virtual simulation that explores the principles of vectors and their application in physics. It involves a string attached to a mouse cursor, which acts as the pivot point for a swinging motion.

How does the experiment demonstrate the concept of vectors?

The experiment uses the string as a visual representation of a vector, with one end attached to the pivot point and the other end pointing in the direction of the mouse cursor. As the mouse cursor moves, the string follows, and the direction and magnitude of the string's movement represent the direction and magnitude of the vector.

What factors affect the swinging motion in the experiment?

The swinging motion in the experiment is affected by two main factors: the length of the string and the velocity of the mouse cursor. A longer string will result in a slower swinging motion, while a shorter string will result in a faster swinging motion. Similarly, a higher velocity of the mouse cursor will result in a more significant change in direction and magnitude of the swinging motion.

How does the experiment relate to real-world applications?

The concept of vectors explored in this experiment is crucial in many real-world applications, such as navigation, engineering, and video game design. Understanding vectors is essential for calculating trajectories, forces, and other physical phenomena.

Can this experiment be used to teach vectors to students?

Yes, this experiment can be a useful tool for teaching vectors to students. The visual representation of the swinging string and the interactive nature of the experiment can help students grasp the concept of vectors more easily and intuitively. It can also be used to demonstrate how vectors are applied in real-world scenarios.

Back
Top