Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Springs made from PhysicsContrainsActors

Hi everyone, I'm having some trouble figuring out which properties of a PhysicsContraintActor correspond to the physical constants of a spring system.

If I understood correctly, in order to create a non-damped spring - aka simple harmonic oscillator - one has to create a PhysicsContraintActor and link it between e.g. a ceiling (some static non-physics object) and e.g. a cylinder, which has physics enabled and some mass defined. Then, one has to set everything in the PhysicsConstraintActor to "locked", except for the linear Z-motion (spring will swing "up" and "down"), which will be set to "free". Then, we need to set the spring constant (usually described as "K" in physics formulas), which I believe is "Linear Position Drive" in combination with a value for "Linear Position Strength". If I do that, I get:

alt text

However, the oscillation seems to be damped (oscillation decreases in amplitude each swing and stops altogether after n swings). As you can see from the screenshot, I did not setup any linear velocity drive (which I assume is the velocity-dependent damping).

Please let me know, what I'm doing or understanding wrong here.

Thanks very much in advance, Sven

Product Version: Not Selected
springproblem.png (43.8 kB)
more ▼

asked Jun 25 '15 at 09:08 AM in Using UE4

avatar image

1 1 2 1

avatar image sven1977 Jun 25 '15 at 09:39 AM

I need to add that I did set "Linear Damping" on the cylinder (and also my ceiling, just in case) to 0.0. So this cannot cause the damping effect either.

Again my question is basically how to setup a harmonic oscillator (non-damped spring).

Thanks, Sven

avatar image AdrielKinn Aug 30 '15 at 05:02 AM

Check the physics damping in the physics objects themselves. They default to a small amount, pretty much analogous to air drag.

avatar image sven1977 Sep 15 '15 at 10:28 AM

No, that's not it. As I said in my first comment, both physics damping values of the cylinder and the ceiling are set to 0.0. I'm using compiled 4.11.0-0+UE4 and still have the same problem. I'm suspecting a Physx bug?

avatar image Joeman0999 Jun 12 '19 at 01:00 PM

Could someone please find a solution to this problem?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question