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"

Attaching Camera to Character Head in C++

hi! ive been having one of the most frustrating time of my life lol, i literally just started up unreal engine and what I want to do is to attach the camera to the character head, and also add head bobbing while walking and running. but i cant seem to change the camera because it is inherited?? Pls help me :(

Product Version: UE 4.18
Tags:
more ▼

asked Jan 25 '18 at 05:21 PM in C++ Programming

avatar image

stevenfrost
6 2 4 6

avatar image FSapio Jan 25 '18 at 05:42 PM

Can you provide more information? For instance, how is your character set up? Which is the code that is causing the issue?

i cant seem to change the camera

Can you be more clear of what is the problem that you are running into?

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

1 answer: sort voted first

Hey there, you make the camer a child class of the mesh, on the parent socket pick head bone. For the head bobbing look at camera shakes.

more ▼

answered Jan 25 '18 at 06:14 PM

avatar image

xlar8or
6k 163 129 305

avatar image TOXIC_Rize Apr 29 '18 at 11:43 AM

CameraComp->SetupAttachment(GetMesh()); Do This At RunTime Is Will Make The Camera A Child Of The Mesh

avatar image TOXIC_Rize Apr 29 '18 at 12:00 PM

Cant seem to parent the camera to a socket

avatar image xlar8or Apr 29 '18 at 10:44 PM

What happens? If you use that then it should attach to the root of the mesh.

(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