Cyberpunk-Blender-add-on icon indicating copy to clipboard operation
Cyberpunk-Blender-add-on copied to clipboard

Import/export collisions

Open DoctorPresto opened this issue 1 year ago • 3 comments

Already implemented:

  • .phys collision import
  • .phys collision export
    • edit existing .phys only
    • same number of colliders
    • same number of vertices for convex colliders
  • import entColliderComponent
  • import entSimpleColliderComponent

-edit and recalculate rigidbody parameters

  • physmat
  • mass
  • volume
  • moment of inertia

To do:

  • Import/export for query filtering data, selectable query presets via dropdown
  • fix .phys import
  • custom .phys export
  • export entColliderComponent
  • export entSimpleColliderComponent
  • export worldCollisionNode

Maybe:

  • collision bodies from mesh parameters?
    • these aren't really necessary but it's only a couple extra lines to add, would this be useful? Anyone have any input?

DoctorPresto avatar Nov 25 '23 23:11 DoctorPresto

a different approach which would need to be supported by wolvenkit, but would allow much easier and more user friendly implementation as well as be useful for running simulations within blender https://github.com/eoineoineoin/glTF_Physics_Blender_Exporter/tree/54e721dd041226c73f517871ba29d18bfee139e8

DoctorPresto avatar Jan 04 '24 20:01 DoctorPresto

added query filtering + presets to the todo

DoctorPresto avatar Jan 13 '24 10:01 DoctorPresto

.phys export currently requires old naming schema and for all collision objects + the collection to be selected.

DoctorPresto avatar Jan 17 '24 20:01 DoctorPresto