UnityJigglePhysics icon indicating copy to clipboard operation
UnityJigglePhysics copied to clipboard

invalid input position

Open ihopeitdoes opened this issue 1 year ago • 5 comments

Hi, I'm trying to add jiggle physics as mod for a model in an existing game. It works for certain models, but one in particular has very small local positions on the bone transforms which I think is causing issues. For example:

transform.position assign attempt for 'DEF-breast.R' is not valid. Input position is { NaN, NaN, NaN }. UnityEngine.Transform:set_position (UnityEngine.Vector3) JigglePhysics.JiggleBone:PoseBone (single) (at Assets/JigglePhysics/Scripts/JiggleBone.cs:318) JigglePhysics.JiggleRigBuilder/JiggleRig:Pose (bool) (at Assets/JigglePhysics/Scripts/JiggleRigBuilder.cs:109) JigglePhysics.JiggleRigBuilder:Advance (single) (at Assets/JigglePhysics/Scripts/JiggleRigBuilder.cs:229) JigglePhysics.JiggleRigBuilder:LateUpdate () (at Assets/JigglePhysics/Scripts/JiggleRigBuilder.cs:247)

the position signal current and previous position when logged look something like previousFrame: (7.126597E-05, 0.01273373, -0.0007695098) currentFrame: (7.126597E-05, 0.01273373, -0.0007695098)" I'm going to assume there's not much that can be done about it as the system doesn't support values as small as that. (apart from trying to extract the model from the game into blender then applying transforms there)

ihopeitdoes avatar Jun 26 '24 20:06 ihopeitdoes