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"

Collision after dropping item

I have a pickup object system in blueprint where player can hold objects via line trace and drop or throw it. After the pick up I disable collision between the object and pawn and re-enable it after dropping. Before dropping or throwing the hold object I want to check if it collides with player just to be sure it doesn't result immediate collision between object and pawn. For some reasons when I drop object when looking straight down with pawn it actually drops the object and object freaks out and flings away. Where is the part I am making a mistake or is there any alternate solutions for me? Thanks!

Product Version: UE 4.18
Tags:
screen01.png (651.6 kB)
screen02.png (465.0 kB)
more ▼

asked Nov 14 '17 at 06:26 PM in Blueprint Scripting

avatar image

serefatilla
3 1 2

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

2 answers: sort voted first

Might want to change Ignore to Overlap ;P can´t Overlap something if you ignore it right?

more ▼

answered Nov 14 '17 at 06:43 PM

avatar image

Nachtmahr
6k 135 17 154

avatar image serefatilla Nov 14 '17 at 06:46 PM

I want to make it ignore overlap when holding the object. And player can only drop it if object would not collide with pawn.

avatar image Nachtmahr Nov 14 '17 at 07:14 PM

So in what magical ways you figure out if its overlapping the Capsule if you tell it to ignore it? It will always return false. Set it to Overlap and go from there.

avatar image serefatilla Nov 14 '17 at 07:37 PM

I made it overlap. But still I can drop it even when it collides with the pawn.

01.png (598.3 kB)
02.png (497.5 kB)
avatar image serefatilla Nov 15 '17 at 12:13 PM

Looks like the objects' presets were preventing it from overlap. Thanks anyway.

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

Seems like a good time to use the MoveIgnoreActorAdd() function?

You can add to any Actor a list of Actors to ignore collision with.

Can use it so your player ignores his equipment or equipment can ignore the player.

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/APawn/MoveIgnoreActorAdd/index.html

more ▼

answered Nov 14 '17 at 06:48 PM

avatar image

JockoJonson
6 1 4 4

(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