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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

StaticMesh with Physics, but without Gravity


I have a StaticMesh which represents a padlock. This mesh is "attached" to a gate (it is not attached to a static mesh that represents a gate, I mean that a gate is locked with this padlock). Now I'd like to simulate physics, so padlock behaves correctly when we hit it with something. I enable "Simulate physics" and that works ok. But a padlock falls off to the ground. And it should hold on to that gate, it shouldn't fall off until player unlocks it (until player smacks it and breaks it). So I disabled gravity for the padlock, but now it behaves really strange. Like in zero gravity - it just flies through space. How can I fix that? I'd like that padlock to "keep" itself to the gate, but also simulate some physics when player hits it. And until player breaks the padlock, padlock shouldn't fall off.

Product Version: Not Selected
more ▼

asked Jun 30 '14 at 05:05 AM in Using UE4

avatar image

20 7 8 11

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

1 answer: sort voted first

Think about what you are doing:

If you give a mesh physics, it will fall to the ground. If you give it zero gravity, it will float off in a whatever direction - just like in the real world. You want to constrain it and attach it to the gate. There are examples of this in the sample content.


A common game hack though, is to use a static / skeletal mesh, and actually replace it with a physics mesh when it comes for it to fall off ;)

more ▼

answered Jun 30 '14 at 07:58 AM

avatar image

603 23 30 52

avatar image alwalt93 Jun 30 '14 at 08:24 AM

I knew there is another way to do that. Thanks, I'll give it a try!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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