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 is not working between static meshes when using set actor location

Hello,

I am trying to make a throwable weapon in blueprint. I would like to be able to control the movement of it (to be able to customize it), so a projectile component is not the way I want to create it.

So far, I have it so when I click, it performs a trace, then moves the component to that location. Once it reaches that location, it then returns back to the character, even if the character has moved.

I do this by getting the direction vector of the original point and the destination point, and on each tick moving it on that vector, until it has reached the destination point. On the way back then I just get the direction vector between the destination point and character's current location and move it on each tick. To move the actor, I use Set Actor Location.

I would like it so that if my component encounters any blocking object, it would generate an event for me. I have two types of collision, if the player collides with the actor (which currently works fine), and if the actor collides with any blocking object (which is broken). I have a static mesh component of a cube which I am currently using as a placeholder for a weapon. I have tried adding OnComponentBeginOverlap and OnComponentHit events for the cube component, but it does not seem to be able to collide with other static meshes. Generate Overlap Events is set to true, I've tried setting my collision to BlockAll, OverlapAll, etc. My cube does have collision enabled and is set to moveable.

I am working on the basic third person blueprint project. I am blocked from walking into the walls that my throwable weapon actor goes through.

My component structure is: Scene > Cube > CollisionBox

I've been scratching my head at this and I can't seem to figure it out. If anyone can help I would really appreciate it!

Product Version: Not Selected
Tags:
more ▼

asked Apr 01 '15 at 03:28 AM in Blueprint Scripting

avatar image

Legionarus
11 1 2 2

avatar image Draknar Apr 02 '15 at 07:40 AM

I am have the same issue, not sure whats causing it but its rather annoying.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I had the same issue and it took me several hours to resolve. I posted a similar question and found the solution. I uploaded a sample project file so you can see the collision.

Solution: UE4 Cube Mesh Not Colliding Using SetRelativeLocation

more ▼

answered Sep 08 '15 at 01:41 PM

avatar image

compressedFusion
6 1 2 3

(comments are locked)
10|2000 characters needed characters left
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