mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-21 17:50:57 -05:00
fix stiffness. normalized
This commit is contained in:
parent
9f1977d76f
commit
b3dc6b45fa
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user