Collision of components inside of a blueprint
Having an issue with overlap events triggering inside of my blueprint.
I am effectively creating a small pong clone, I have created a static mesh from a geometry brush to make the paddle. I have set on the static mesh paddle "Use complex collision as simple", collision enabled, collision response enabled etc.
I have created a class blueprint which extends Pawn. This class blueprint I have called "Pong Game".
Inside this blueprint I have added two of these static mesh paddles as components.
I have also added a box shape component to this blueprint, which I am using as a wall to detect boundary collisions.
Now the issue is that I absolutely can not get overlap events of any kind between the paddles and the box shape, nor between paddles themselves, or any other component I throw in there.
I add event listeners by using the blueprint component editor clicking the button "Add Event For Static Mesh1"... etc selecting being overlap or end.
At the moment I am basically just setting relative position on the paddle over time to get it to move, which works fine, but when the paddle hits the box wall I get no collision/overlap/hit events at all, so the paddle just carries on flying towards the sky (which is rather amusing!).
Is it a doable thing to have overlap events between components in the same blueprint? I would have thought this would be ok,
asked Apr 07 '14 at 08:18 PM in Blueprint Scripting
I got the same problem here
answered Apr 08 '14 at 03:44 AM
I just spent the last 3 hours hacking away at a new solution, spawning the Paddle outside of the blueprint, reparenting the actor to the paddlegame blueprint after spawning so I can move it relative to the game board, still nothing, even though the paddle blueprint is completely spawned seperately and outside of the paddle game scene graph I get 0 overlap events. This is impossible, I cant understand what the deal is, I have tried so many different configurations, all sorts of different types of overlap rules.
I even changed both the paddle blueprint mesh and the wall top box shape to block all and used set actor location to sweep and its completely and utterly ignored.
answered Apr 08 '14 at 01:41 PM
Ok I found a solution atleast for now.
In my paddle blueprint, I added a box shape as a child of the paddle and scaled it down to match the size of the paddle, the box shape correctly generates overlap events, for the paddle I turned off all collision since it doesnt work anyway.
I cant figure out why my paddle wasnt generating overlap events. I made a BSP box, and used the editor to convert it to a static mesh, thats the only thing special about it that I can think of.
answered Apr 08 '14 at 06:38 PM
I have a similar issue with Sphere and capsule components inside my character blueprint not reporting overlap as expected.
A Tutorial or more specific documentation on collision of blueprint components would be really awesome!
answered Apr 11 '14 at 01:54 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here