Hi Aman, Nice work! You'll need to instruct it about the chrono system, as Unreal has no context for what a Chrono visual model is or what to do with the ChBody you created.
The static mesh component is a good start- it is an Unreal component which will tell Unreal how to draw a sphere. But you'll need to tell Unreal about the Chrono physics system and the sphere's Chrono properties so it connects the two, renders it accurately, updates its position/etc. I would suggest having a look at the way Chrono-Unity does it (https://github.com/projectchrono/chrono-unity), as the engines are quite similar in the way they would utilise Chrono. The release package comes with the chrono dll's already. -jd On Tuesday, October 1, 2024 at 6:58:29 PM UTC+10 Aman Chauhan wrote: > Hello all, I am trying to use chrono physics in unreal engine 5. I have > created an actor class and added this code from one of the demo of chrono > engine. > > [image: Screenshot 2024-10-01 142007.png] > > The code is compiling fine in unreal engine. I have placed this actor in > the level also. But the sphere is not visible in the scene. The level is > empty. > > > - Is there any specific method for a chrono mesh to get rendered in > unreal engine ? > - Is it even possible for a chrono mesh to get rendered in unreal > engine ? > > Or > > - Can anyone tell if how can I use all of this chrono physics > functionality on StaticMeshComponent of unreal engine as we can see the > unreal engine static mesh in the scene easily. > > > Please help if anyone knows any of this. Any help would be appreciated. > -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/2e24d96b-bce1-45da-9314-3577dca7f058n%40googlegroups.com.
