Announcement

Collapse
No announcement yet.

Reset position of physics props n minutes after being knocked around

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Reset position of physics props n minutes after being knocked around

    I have a map with many physics props (static mesh with "Simulate Physics" enabled) around. They get knocked around when the player runs into them, just as a visual aspect and doesn't affect gameplay. However, I'd like to reset these props to their original position n minutes after they've been knocked around. I was hoping there would be some way to handle this that didn't involve converting all the static meshes into actors because that seems like overkill, especially when there's so many.

    I wanted to check to make sure I wasn't missing some other way of handling this before I delved into BP. It seems like some common functionality that UE4 might have a way to handle already.

    Thanks

    #2
    Originally posted by Chumble View Post
    I have a map with many physics props (static mesh with "Simulate Physics" enabled) around. They get knocked around when the player runs into them, just as a visual aspect and doesn't affect gameplay. However, I'd like to reset these props to their original position n minutes after they've been knocked around. I was hoping there would be some way to handle this that didn't involve converting all the static meshes into actors because that seems like overkill, especially when there's so many.

    I wanted to check to make sure I wasn't missing some other way of handling this before I delved into BP. It seems like some common functionality that UE4 might have a way to handle already.

    Thanks
    Couple of ways I can think of:

    1) Yes, blueprint. Record all positions when the level starts. After N minutes, set all the actors back to original positions.

    2) Level streaming. Just load all these physics meshes from a separate sub level. When it's time to reset, just unload the level and reload, boom - done

    Comment

    Working...
    X