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. 

Custom Physics Ball 360 Loop Camera Help

   Hi, I’ve created a rolling ball game from a blank template (Didn’t care much for the template example methods). Set the spring arm to absolute rotation to prevent it from rolling with the ball. Added view controls to the extent that you can pan left and right 360 degrees and also zoom in and out to a certain distance. I’m using add force in accordance with world rotation so the cameras forward view is the direction forward force is added.

My problem occurs when I begin to climb a steep hill, or a 360 degree loop is really my goal. At one point the hill or loop becomes too steep and the forward force tries to propel into the angle rather than up it, because the camera direction doesn’t update according to my angle of movement and I can’t figure out how to get it to do so. Ultimately I’d like to be able to complete a 360 degree loop while maintaining a third person perspective even when upside down. Any help would be greatly appreciated.

Product Version: UE 4.15
Tags:
more ▼

asked Apr 20 '17 at 07:10 AM in Blueprint Scripting

avatar image

Matt1612
1 1 1

avatar image Matt1612 Apr 21 '17 at 12:14 AM

This is what I’ve come up with so far, though I’m not sure if it’s the best way or if it’s all even necessary. Using line trace to detect an angular change and then re-factoring the values to set the spring arms pitch. This works Excellent after setting the spring arm to enable camera rotation lag. However, this is obviously only going to work when approaching an upward angle. Once the ball reaches the top portion of the loop the camera flips the world upside down and it remains that way even after completing the loop.

I’m using the line trace to determine an angle and have a -20 pitch value restored when no angle is detected but the world is still inverted upon completion of the loop until I fall off of a ledge.

Breaking my blueprint in half so it can be better viewed. I’m also calling this on every event tick.

alt text

alt text

left_side.png (218.8 kB)
right_side.png (252.3 kB)
avatar image taribo80 May 28 '17 at 03:09 PM

hi, i'm trying your solution but i don't understand where you connect first input LineTraceByChannel. I have copyied all the rest but the camera doesn't change, i'm new with ue so please can you help me? Thank you

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

0 answers: sort voted first
Be the first one to answer this question
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