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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

How do I lock physics on 2 axises for a 2.5d game?

I have a sphere on which physics is enabled. My game is a 2.5d platformer and I want to prevent objects from falling from the stage.

Here is a image of my scene and my sphere one which I applied a constraint (but obviously doesn't work).

alt text

How do I prevent my sphere to role on the X axis?

Product Version: Not Selected
setup.jpg (175.4 kB)
more ▼

asked May 26 '14 at 02:43 AM in Using UE4

avatar image

11 1 2 5

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi JPLeclerc,

This isn't possible to do in the Editor unless you go into the code and edit the physics.

My suggestion would be to use a combination of depth and/or Blocking Volumes. If you look at Shadow Complex for example, most of the background objects that explode and bounce around are either far enough from the player as to not impede his path or blocked by Blocking Volumes.

If your goal is to keep something in the players path (like a box or barrel that the player needs to knock through the level from point A to B) you could sandwich the player path in between 2 Blocking Volumes.

I hope that helps.

Thanks, TJ

alt text

more ▼

answered May 27 '14 at 03:13 PM

avatar image

41.1k 1009 183 493

avatar image JPLeclerc May 28 '14 at 04:58 PM

Would it be too hacky to set the X value of the ball to the character's X value on eventTick?

avatar image TJ V ♦♦ STAFF May 30 '14 at 01:19 PM

Could you include a screenshot of your Blueprints so we can see your exact setup?

avatar image TJ V ♦♦ STAFF Jun 12 '14 at 05:45 PM

Hi JPLeclerc,

We haven't heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you still have questions about this, please feel free to post back here.

Thanks, TJ

(comments are locked)
10|2000 characters needed characters left
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