x

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. 

A Limbo-like push/pull crate system?

I'm working on a puzzle platformer game and I'm trying to implement a push-pull system for objects, like the crate push/pull system they have in Limbo.

alt text

I want to be able to push and pull crates on flat and slightly slanted surfaces ,and I also need to be able to push them off a platform or a cliff.
I've tried doing this in a couple of ways and none of them are working for me.
I've tried:
1) Using a Physics Handle component and setting the crate location on Tick, but it doesn't work on slanted surfaces (I still haven't tried setting the rotation so it matches the terrain, but that doesn't seem like a right way to solve this problem)
2) Using a Physics Constraint component and attaching the crate to my character capsule. The problem with this approach is that I can't push it off a cliff. I taught about releasing the "hold" on the crate when it's rotated past a certain angle, but it doesn't work so well and it doesn't feel natural. It also works poorly on slanted and curved surfaces, especially when going from slanted to regular ones - it is trying to maintain an angle it had on the moment when I "grabbed" the crate - so I end up pushing it on its corner while it's bouncing all the time.
3) I've even taught about attaching the box to my hierarchy but I've instantly given up on the idea because the crate wouldn't collide with other world objects (while being pushed). Not the mention that the gravity wouldn't work and that i would have to set the rotations manually.

Regular pushing while my capsule is colliding with the crate works well, but I need to be able to pull the crates too so I'm looking for a solution that applies to both pushing and pulling! I've seen other posts on this topic but none of the answers had other suggestions than the ones I already tried. Could someone point point me in the right way or just give me an idea - How do I implement this system?

Product Version: UE 4.10
Tags:
more ▼

asked Mar 06 '16 at 12:33 PM in Using UE4

avatar image

joxoleon
16 1 1 4

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

1 answer: sort voted first
more ▼

answered Dec 29 '16 at 12:52 PM

avatar image

gtazinho100
1 1

(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