Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulate Physics #38

Open
Pikike opened this issue Oct 18, 2024 · 4 comments
Open

Simulate Physics #38

Pikike opened this issue Oct 18, 2024 · 4 comments

Comments

@Pikike
Copy link

Pikike commented Oct 18, 2024

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
Copy link
Owner

irajsb commented Oct 18, 2024

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
Copy link
Author

Pikike commented Oct 18, 2024

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

@irajsb
Copy link
Owner

irajsb commented Oct 18, 2024

yeah. its even more efficient to draw

@Pikike
Copy link
Author

Pikike commented Oct 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants