Jump to content

FRACTURES IN C#


Recommended Posts

Posted

Sorry for the lack of knowledge, I'm working with fractures, however in the examples and tutorials that I've seen they usually use just that code "body_cast" and looking in documentation it says that I need to use the unigine.h library, my problem is that I'm using C# and I don't know how to import it and just by typing body_cast or class_cast it doesn't recognize it, could you help me?

Also when I create a normal fracture component of the "cracking" type, when i crack the object it is still there but i can't see, if it's a cube sometimes there are some pieces that fly over an invisible cube.

image.png.34f5f2b3d9aa563a3d2405cbf5c4c1de.png

Posted

Hello!

Maybe this topic would help? There is a code snippet that show how to use BodyFracture: https://developer.unigine.com/forum/topic/6375-solved-c-code-of-fracture-body-complex-tringles-mesh-or-simple-tringles-mesh/#findComment-44753

You can also C# docs for BodyFracture (not UnigineScript): https://developer.unigine.com/en/docs/latest/api/library/physics/class.bodyfracture?rlang=cs&autotranslate=en

Thanks!

 

How to submit a good bug report
---
FTP server for test scenes and user uploads:

×
×
  • Create New...