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. 

How can I base the movement of my character solely on physics?

Hey guys!

I'm trying to make a tunnel racer. So the basics are, there is a tunnel which is filled with a liquid and the liquid has a current that pushes everything in the tunnel forward. Every objects movement inside the tunnel is influenced by these rules. So normal objects in the tunnel are rigid bodies (spheres), which we call photons. These photons are moved by flow nodes, which are positioned in the center of the tunnel. These flow nodes apply 3 forces to each photon.

First, they push a photon towards the flow direction (which is along the tunnel)

Second, they push a photon outward towards the edge of the tunnel

Third, they pull a photon towards their own center. So as to avoid collision with the tunnel wall (which is turned off for performance purposes)

The balance of these 3 forces create the flow forward while keeping all photons at the edge of the tunnel rather than in the center. The basic idea is, you have a plane which is wrapped around a spline and gravity pulls objects towards the edges.

Now this works perfectly fine with our photon blueprints. However I can't get these forces to apply on a player character. This is what the blueprint looks like. The aim is to have these forces apply to the player character and have the player input applied to the movement within the same context.

There is actually a lot more that confuses me. As I need to set up this character from scratch and I still haven't found a good tutorial for that.

alt text

Product Version: Not Selected
Tags:
ue4_question.png (250.3 kB)
more ▼

asked Nov 09 '14 at 06:53 PM in Blueprint Scripting

avatar image

dramaturco
31 3 4 8

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

1 answer: sort voted first

have you checked out the ball movement and control in the Project templates? start a new project and select Rolling

more ▼

answered Nov 09 '14 at 10:51 PM

avatar image

Alan Webster
860 50 34 81

(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