PhysX Lab to UE4 collision problems.
Hello! I am trying to create a destructible asset using PhysX lab and using it in UE4. However after I export as .apb and import the mesh, when I play and shoot the mesh, it explodes randomly. This is not the issue however, the issue is that the collision of each chunk is not perfect, UE4 has sort of made a box around each chunk and not any details. This is why I think the chunks are standing on its sides and having weird physics. Note I am using the FPS example on a new level. I used a fracture map to fracture my texture in PhysX Lab. I am using UE4 4.2, im not sure if updating to 4.3 will help but it might, let me know! Im also not sure if it is part of my settings that is ruining this, or it is a bug. I have tried turning up the global gravity but the chunks just drop when shot, all at once and it doesnt fix the collision either. Also note,I have tried most methods found on the answer hub to resolve this, nothing worked (changed impactdepth, various blueprints, etc.). I also have noticed that when i select a chunk in the destructible editor (preview depth 1) it is a box around it, not conformed around the chunk, the blue outline that is. I hope this get resolved soon, thanks in advance!
(comments are locked)
|
Follow this question
Once you sign in you will be able to subscribe for any updates here
I'm having the same collision problem. The chunks have collision boxes that are too large. So they end up floating above the ground.
Hey,
The blue box that surrounds your chunk in the Destructible editor is not its collision. I'm not sure why you have chunks sitting oddly. Would you mind linking me to a test asset with which this happens so I can see if there's a bug? Thanks!
Yeah I can send you the object when I get home, it is in an .apb file format. Thanks
Also, it happens with all the assets that I transfer from PhysX Lab so ill just send you any one. Not sure why this is though!
The following link is for anyone who wants to see what i'm talking about, just load the FPS game and put this in your scene and shoot it! https://www.mediafire.com/?6bzq4667nghzyll
Thanks for the test asset. I'm seeing the same thing when I import it into my project, but creating a new destructible asset in PhysX Lab does not reproduce this behavior. I'm inclined to believe there's a setting in your PhysX project that is exporting the .apb with some unusual values. Would you mind creating a project that creates destructibles with this behavior and then putting that up somewhere for me? Thanks!
For some reason when i save the project and open it again, it opens with nothing in it. I'll just take screen shots of all the settings and post them up
Ok i have the pre fracture settings, the post fracture will be up soon! http://imgur.com/a/RpkN8#0 Oh and theyre not in order! Sorry!
Actually there is no need for post fracture, i didnt change any settings, but let me know if you need it!
Also, i'm using the fracture map included with physx lab with a simple box mad in maya exported as obj
I may have fixed the collision issue however, three more have arisen. But I think I fixed the collision by making the collision shape, collision decomposition in PhysX lab. And that fixed the issue where they would float and have random defying physics properties. But now I have an issue where the DM spawns about a foot off the ground no matter how deep I place it in the scene (I am trying to make it flat on the ground). And also when the destructible mesh is shot, all the chunks explode only on the Y and Z axis, and when all chunks land, most of them are standing on their edges up on the Y axis. Which brings me to my next problem which is that every chunk is being destroyed instantly as the object is shot, even when I select world overlap and impact damage in PhysX lab (I also put defaultimpactdamage to 1 and it didnt fix it). I'm pretty sure the collision is fixed because when I walk over the chunk it gets pushed and falls flat on the ground and can be pushed even more (however not all of them are interactable with?). They also collide with each other properly. I think the collision shapes get clipped through each other when the DM is destroyed, cause when I walk over them, their collisions are fixed (the chunks that are interactale anyway)! There is also quite a bit of lag when the DM is shot (probably cause so many chunks are being generated) so thats why I want impact damage, world support and support chunks! So if you can find a fix for this, it would be great! Heres a couple of screenshots! http://imgur.com/a/iqvMg#0