hello everybody i need your help i want to make a spring using physics i am not looking to fake it just a simple spring

any help or suggestion is more than welcome

7 posts
• Page **1** of **1**

The simple formula for a spring force is F=kx, where k is the strength of the spring and x is the difference of length from a rest length.

Here is a capx of it in action.

https://dl.dropboxusercontent.com/u/5426011/examples20/spring_physics.capx

I also added damping which uses the formula F=-cv, where c is the damping strength and v is the object's velocity along the length of the spring. In the capx the formula looks a bit much because of a vector projection but it works.

Here is a capx of it in action.

https://dl.dropboxusercontent.com/u/5426011/examples20/spring_physics.capx

I also added damping which uses the formula F=-cv, where c is the damping strength and v is the object's velocity along the length of the spring. In the capx the formula looks a bit much because of a vector projection but it works.

**Posts:**5,494**Reputation:**81,676

B

95
S

34
G

128
@R0J0hound

first thanks you very much for your time to set up an example for me realy appreciate it

second i want to ask How could i limit the spring movement at certain angle example it move only in 45 degres

i just could not find the formula .

when i set the "spring_angle" to constant it became out of control.

tnindie 2013-12-06 11:49:52

first thanks you very much for your time to set up an example for me realy appreciate it

second i want to ask How could i limit the spring movement at certain angle example it move only in 45 degres

i just could not find the formula .

when i set the "spring_angle" to constant it became out of control.

**Posts:**44**Reputation:**668

B

7
S

2
7 posts
• Page **1** of **1**

## Who is online |

Users browsing this forum: No registered users and 11 guests |