Set BoxCollision extents messes up collision
I'm trying to construct a Blowing Fan that pushes the character upwards if it's above it.
To make this easily editable, I'm using a 3 point spline to define the BoxCollision extents. The problem is that when I try to set the box extents calculated from the spline, it reduces the collision of the BoxCollision to only the central axis.
Does anyone know how to fix this?
Also, if you know of any other method to easily set the box collision extents per blueprint instance, please share it. I know I could have sliders instead of the spline, but from an usabillity standpoint it's really not great.
I've shared the entire asset. Feel free to use it, modify it as you want and share the results.
Here's the spline and the BoxCollision in edit mode:
I've removed other parts of the construction script, but even with this, it messes up collision:
Here we can see that in-game, the character and the object overlap the BoxCollision but don't generate an event:
Finally if it overlaps the central axis, it will move the character upwards:
Here's the blueprint source file: Blowing Fan UAsset
asked Jun 17 '16 at 08:03 AM in Blueprint Scripting
You're feeding it negative numbers for X and Y of the box extents. Flip the order of the subtraction and it should work.
Also, In case you didn't know, you can use the "pxvis collision" console command to visualize and debug your collision in-game.
answered Jun 17 '16 at 08:36 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here