niftools / blender_niftools_addon

The Blender Niftools Addon is a Blender add-on to enable import and export of NetImmese File Formats including .nif, .kf, .egm.
http://www.niftools.org
Other
385 stars 104 forks source link

Collision - Convert convex to box shape #182

Open neomonkeus opened 10 years ago

neomonkeus commented 10 years ago

Migrated from sf.net

I asked you via PM about the possibility of a certain script, to overcome the box shape collision bounding box issue (Blender), for PYFFI. It's a type of conversion script to convert perfectly cubic/rectangular shaped convex collisions, into box shape collision (with bhkTransformShapes for each box shape, to account for any Translation or rotation offset). I think box shape collisions are more performance friendly than box-shaped convex collision, tbh. I also think I read something like that on Saidenstorm's collision tutorial, on his personal website.

You mentioned it might require something called "numpy", to do the required math calculations. You also said this "numpy" might also have to be downloaded by those of us who want to use such a PYFFI script, and thus add another program dependency. Is it then possible, to make the use of such a conversion script and program needed, optional? Or can "numpy" be somehow packaged with PYFFI in same download and install, to make things easier on modders?

Koniption

HENDRIX-ZT2 commented 4 years ago

I think this is at least a new feature suggestion, but it is probably too broad and not really possible. Seems like a highly complicated heuristic, too. The plugin should not have to worry about this. I'd say: close off as invalid.

neomonkeus commented 4 years ago

Yeah that is why I pushed it out to the 3.0.0 new feature milestone. Some of this is done within the plugin already to convert some shapes like capsule > sphere.