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"

How can I make it so I can rotate a sphere component in all directions?

So as part of a game design summer camp, me and a few teammates are making a sidescroller (not 2D) that has a grappling hook as the main mechanic. After a lot of time and searching through many tutorials, I finally got it so I could aim the grappling hook with the mouse, by using an invisible sphere around the player to aim. I figured out how to do that from this post: https://answers.unrealengine.com/questions/359706/rotating-an-object-towards-the-mouse.html

However, there is one tiny inconvenience; I cannot rotate the sphere all the way around my character, because it stops just above him and then stays facing forward. This isn't an enormous problem, but if it's fixable, i'd like to fix it, since it'd feel even better to control than it already does. Here's some images of my code (Pretty much exactly the same as the post linked above): alt text alt text

I'm pretty sure I know what the problem is; No negative numbers are being input, so therefore, no aiming behind the character. However, I don't know how to fix the problem. If it's not a problem that can be solved, it's not the end of the world, but help is appreciated!

Product Version: UE 4.15
aimthegrapple.png (170.4 kB)
more ▼

asked Jul 03 '17 at 12:16 AM in Blueprint Scripting

avatar image

1 1

avatar image Xcog Jul 03 '17 at 12:21 AM

Note: I understand next to nothing about all the math going on in the first picture. I don't know why it's necessary or why it makes the whole aiming thing work the way I want it to. If there's a blatantly obvious solution in there, I haven't seen it / cannot see it.

(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