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"

How can i move the ball with the character?

I make a football game and i have a problem.

If is the character in the near of the ball, then the ball should go on with the character like the FIFA game from EA Sports. How can i make this?

I work with EventTick in the ThirdPersonCharacter and have a Ball Reference. Is this the right way?

MoveComponentTo or SetWorldLocationAndRotation are working, but how can i set the location and the rotation of the ball in front of the character, if he has the Ball? I think i need the location and rotation of the character and add a number.

Thank your for help.

Product Version: UE 4.10
Tags:
more ▼

asked Mar 15 '16 at 02:42 PM in Blueprint Scripting

avatar image

Floridus
1 2 2

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

2 answers: sort voted first

Ok i found the solution. Thank you for the help.

Here the solution for other people with the same problem.

alt text

solution.png (106.2 kB)
more ▼

answered Mar 15 '16 at 07:08 PM

avatar image

Floridus
1 2 2

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

You could get the forward vector of the character and from that vector add a float value to however far in front of the character you need it to be.

more ▼

answered Mar 15 '16 at 02:51 PM

avatar image

Black Phoenyx
4.2k 165 9 170

avatar image Floridus Mar 15 '16 at 03:27 PM

It works only for the first time, then the ball falls through the floor. The ball does not move with the character.

Here is a picture of my blueprint.

alt text

problem.png (171.8 kB)
(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