mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-09 04:19:42 -05:00
fix stiffness. normalized
This commit is contained in:
@@ -70,7 +70,7 @@ namespace UniVRM10.ClothWarp.Components
|
||||
var joint = joints[i];
|
||||
|
||||
// mod ?
|
||||
var stiffness = joint.m_stiffnessForce * 6;
|
||||
var stiffness = joint.m_stiffnessForce;
|
||||
|
||||
var settings = new UniGLTF.SpringBoneJobs.Blittables.BlittableJointMutable
|
||||
{
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace UniVRM10.ClothWarp.Jobs
|
||||
var parentParentRotation = CurrentTransforms[parent.ParentIndex].Rotation;
|
||||
|
||||
var velocity = (CurrentPositions[particleIndex] - PrevPositions[particleIndex]) * (1.0f - particle.Settings.dragForce);
|
||||
var resilience = parentParentRotation * parent.InitLocalRotation * particle.InitLocalPosition *
|
||||
var resilience = parentParentRotation * parent.InitLocalRotation * particle.InitLocalPosition.normalized *
|
||||
particle.Settings.stiffnessForce;
|
||||
var external = particle.Settings.gravityDir * particle.Settings.gravityPower + Frame.Force;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user