Questions tagged [spring]
The spring tag has no summary.
9 questions
1
vote
1
answer
227
views
Why is my spring exploding? And how to fix it?
Let's say I have a 1-dimensional spring, and I want to simulate it by applying a force that may vary with time. We can skip friction and dampeners for now.
From what I learned many years ago in high ...
0
votes
0
answers
55
views
Torque doesn't get into equilibrium with simple spring system
I'm trying to implement a spring-mass-dampener system but running into some issues. The linear movement gets into equilibrium as it's supposed to, but the object just keeps rotating until the ...
0
votes
1
answer
242
views
How to get spring effect between two bodies
I'm using Box2D 2.4.1 and trying to get a spring effect between two bodies. No matter how I change frequency or damping ratio with the Distance Joint, I see no effect..
Here's my setup
...
2
votes
0
answers
97
views
Calculating spring constant c
Suppose we have 2 springs with different values for m and k. The first spring is given an arbitrary dampening value, ...
0
votes
0
answers
45
views
Replicating spring effect
I want to replicate this spring effect on the stack of popsicles in the attached video. Can you advise some tips/tutorials/ideas/articles? The main goal is so that it can wobble freely and feel more &...
1
vote
1
answer
246
views
How can I create this springy oscillating motion chasing / orbiting the mouse?
I'm trying to recreate this motion,
I think most of the motion is based on this formula
\begin{eqnarray}
x(t) &=& A e^{-\gamma t/2} \cos(\omega t - \phi) \\
y(t) &=& B e^{-\gamma t/2} ...
0
votes
2
answers
168
views
Turn based game in HTML/JS/CSS - new joiner messes with state of game while animations are still running for other players
I developed a playing cards web app using HTML/JS/CSS.
Communication with the server is performed using WebSocket.
The server is developed in Java Spring.
The game proposes to join one of the many ...
3
votes
1
answer
1k
views
In Box2D, how do I create an infinitely oscillating spring?
How do I create an ideal spring that can oscillate indefinitely using Box2D?
A b2DistanceJoint works almost perfectly, but it eventually slows to a stop, even with ...
3
votes
2
answers
543
views
In Box2D, how do I make a flexible pole?
I would like to replicate the behavior of a flexible pole as used for pole vault.
Can somebody give me some inspiration how to simulate that with Box2D?
Should I connect multiple objects with ...