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"

Convert mouse to world space not working in perspective

I'm trying to make a blueprint that causes an object in the world to follow directly beneath the mouse. It works fine with an orthographic camera, but when I have it set to perspective, the object sits at an arbitrary location in the world and moves only a small amount with the direction of the mouse. alt text

Product Version: Not Selected
ue4bperror.jpg (197.4 kB)
more ▼

asked May 12 '15 at 07:06 PM in Blueprint Scripting

avatar image

157 15 19 27

avatar image Seeder98 Sep 06 '16 at 07:48 PM


I have very similar issue. Did you solved it ?

Thanks ;)

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

1 answer: sort voted first

Just to clear this older question up: The reason this does not work is that you are getting the location in the world for the mouse, which is near the actual camera and not on the ground or something like that.

You are actually missing a raytrace to the ground here (using world location and world direction outputs) and you would need to set the location to this result then.

Especially for a camera with perspective its crucial that you dont just use the output of this function (given that your object is somewhere else on the ground, which i think is true since you are only using the Y value of the vector).

more ▼

answered Sep 06 '16 at 08:22 PM

avatar image

830 26 15 41

(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