sideeffects / GameDevelopmentToolset

A series of Houdini shelf tools that are geared towards game developers!
Other
1.02k stars 211 forks source link

VAT RigidBody pivot is misplaced in game engine #82

Open tractopoutre opened 6 years ago

tractopoutre commented 6 years ago

The pivot is misplaced in game engine (Unity in my case) when exporting a rigid body simulation with the VertexAnimationTextures ROP. houdini_vat_pivot

Here is a fix:

  1. Go into VertexAnimationTextures ROP/rigid_obj/REFERENCE_MESH
  2. Select the Attribute Wrangle called "reset_to_rest_P_and_orient" 3 Replace @P = v@rest; by @P = v@pivot;
jhdjhssksdh commented 1 year ago

cool