irajsb / UE4_Assimp

Assimp mesh importer for Unreal Engine
MIT License
141 stars 29 forks source link

Simulate Physics #38

Open Pikike opened 1 month ago

Pikike commented 1 month ago

Hi, I want to simulate physics on the meshes i imported with assimp, but i just can't make it work. Also i would love to interact with the objects, an i've already added a sphere collison, with blueprint to the actor i will use, but it's not working.

So first I created an actor, and added a static mesh with hidden in game render option so it is basically just a placeholder, but with this help i could the actors simulate physics set true. After i added to this actor a procedural mesh component, and the physics worked properly. But if i add the procedural mesh component through blueprint like i've seen here ( https://blueprintue.com/blueprint/inhg2zu3/ ) the physics wont work.

If you could please help me and if you need more information just let me know.

irajsb commented 1 month ago

there is an option to create static meshes from AIMesh type of the assimp image this one generates a collision for the import. (not generated by my code but its unreal that creates collision).

Pikike commented 1 month ago

So instead of using get mesh data for procedural mesh node i should juct use get static mesh node?

irajsb commented 1 month ago

yeah. its even more efficient to draw

Pikike commented 1 month ago

And with wich kind of node should i replace add procedural mesh component node and create mesh section node? Currently the blueprint looks like this: image