Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit d6b46e0

Browse files
committed
knot squisher doesn't leave penetrators stuck in a stretched state anymore
1 parent c64c6f2 commit d6b46e0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Scripts/PenetratorListeners/PenetratorKnotSquisher.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ protected override void OnPenetrationDepthChange(float depth) {
2323
lastDepth = depth;
2424
}
2525

26+
public override void Update() {
27+
base.Update();
28+
penetrator.squashAndStretch = Mathf.SmoothDamp(penetrator.squashAndStretch, 1f, ref currentVelocity, 0.6f);
29+
}
30+
2631
protected override void OnPenetrationKnotForceChange(float knotForce) {
2732
base.OnPenetrationKnotForceChange(knotForce);
2833
knotForce = Mathf.Clamp(knotForce, -knotForceFactor, knotForceFactor);
29-
penetrator.squashAndStretch = Mathf.SmoothDamp(penetrator.squashAndStretch, 1f, ref currentVelocity, 0.6f);
3034
if (knotForce * dir < 0f) {
3135
penetrator.squashAndStretch += knotForce*Time.deltaTime*2f;
3236
} else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.naelstrof.penetrationtech",
33
"displayName": "Penetration Tech",
4-
"version": "3.4.5",
4+
"version": "3.4.6",
55
"unity": "2020.3",
66
"description": "Tools that help analyze, animate, and work with penetrators and orifices for sexual activities."
77
}

0 commit comments

Comments
 (0)