Questions tagged [spring]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
41 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 ...
Panda Pajama's user avatar
  • 13.4k
0 votes
0 answers
31 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 ...
Dóri's user avatar
  • 1
0 votes
1 answer
88 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 ...
swee's user avatar
  • 11
2 votes
0 answers
74 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, ...
19172281's user avatar
  • 151
0 votes
0 answers
41 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 &...
rerax's user avatar
  • 1
1 vote
1 answer
154 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} ...
JSmith's user avatar
  • 123
0 votes
2 answers
136 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 ...
Mehdi B's user avatar
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 ...
Narek's user avatar
  • 1,327
3 votes
2 answers
506 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 ...
Krumelur's user avatar
  • 299