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"

Throwable Camera Look Away from Walls

Hello everyone,

I'm working on a game that needs to have a throwable camera that the character can throw at walls to get view of what is behind the corners. I'm wondering how can I make sure the camera always point at the right side and look away from the solid wall?

The wall is throughout the entire level and can't have custom sockets to hold the throwable camera.

Thank you

Product Version: UE 4.14
Tags:
more ▼

asked Apr 12 '17 at 07:10 PM in Using UE4

avatar image

excalibour00
6 2 3 5

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

1 answer: sort voted first

So, it sounds like on ball/camera collision with the wall, you would want to get the normal vector to the wall as the default camera angle. (that is facing directly off the wall) you could then customize that angle to get a more desired result.

I would make a projectile class and on collision with the wall, spawn a class ("ball camera") which of course would have a camera component and probably be a pawn if you want the player to control it. The location of spawn would be the hit location and the rotation of the spawn would be the rotation of the x vector of the normal vector. To get the rotation correct, try dragging off a wire from the "Normal" vector off the of the broken hit result and the type "get rotation from x vector" and let that be the initial rotation of of the spawned camera.

more ▼

answered Apr 17 '17 at 01:31 PM

avatar image

LostScout
135 18 28 35

(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