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"

Making the Target Arm Length less than 300?

Good day. I have a character that I've scaled to a normal height vs the giant blue guy. My character is 170 cm or UE4 units which is about 5.57743 feet. But when i bring them into the character object the camera is too far from the player. In the CPP constructor where the Arm length is specified as 300 i tried to make it 100 -> 50->10 and nothing showed any change. I tried going the other direction and made the arm length 10000 that worked but any value less than 300 will not. Is there a clamp on this somewhere configurable that can allow me to make the arm shorter?

Product Version: Not Selected
Tags:
more ▼

asked Dec 22 '14 at 05:15 PM in C++ Programming

avatar image

Shoiko
638 57 55 68

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

1 answer: sort voted first

Solution

" I tried going the other direction and made the arm length 10000 that worked but any value less than 300 will not. Is there a clamp on this somewhere configurable that can allow me to make the arm shorter?"

If you have a blueprint of your character such as MyCharacter, the settings there will override those in the C++ constructor!

This means you absolutely must change the TargetLength in the BP of the character, rather than using C++

This is only something to consider for C++ classes that have a Blueprint version in the Editor.

Rama

more ▼

answered Dec 22 '14 at 11:29 PM

avatar image

Rama
10.6k 446 346 1088

avatar image Shoiko Dec 23 '14 at 01:23 AM

Thank's Rama I tried this printing out the arm length and it is indeed going to 0 even in the negative if needed but I guess its the distance of the camera that's attached to the arm that is my issue because even at 0 the camera is too far from my camera. I guess i have to look up how to move said camera. Thank you sir...

avatar image Shoiko Dec 23 '14 at 01:25 AM

For those looking for the BP solution i found one here though it's not solving my current issue: http://unrealpossibilities.blogspot.in/2014/12/unreal-engine-4-tutorial-smooth-zoom.html

avatar image Shoiko Dec 23 '14 at 01:37 AM

To anyone trying to adjust the follow cam I used the Add Local Offset in the begin play to apply a camera offset for the initial camera position. Got me the results i needed.

(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