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"

camera zoom on cursor

Hi, I'm looking for a blueprint setup for my zoom in/out camera. How to make the camera target the cursor while zooming ? I've tried with Get Mouse Position, but it's only 2D coords. I've tried a ConvertMouseLocationToWorldSpace too, but my camera looks an object with a certain angle from the ground (20°), so there is a mismatch in one axis : each time I zoom, the camera moves on its Y axis (it probably don't takes count of the difference between the Y coord of the camera and the distance between the camera and the targeted object). I'm actually working with a camera attached to a spring arm (which length is modified to ajust the zoom), in a pawn class blueprint.

Any suggests would help, thanks !

Product Version: UE 4.10
more ▼

asked Feb 18 '16 at 11:39 AM in Blueprint Scripting

avatar image

Teapot Creation
165 22 33 47

avatar image Teapot Creation Feb 22 '16 at 12:45 PM


I've tried different ways, the best consists in converting the X/Y move of the cursor in the screen into %, and using this rate to scale the world location vector of the camera. But I've jumps from one position to another, as lerp doesn't work correctly ; without explanation, even if the "set world location" node is linked to On Tick event, it only works during the time the wheel scroll "button" is activated (that is to say a fraction of second).

Has someone a working workflow ?

(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