mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-24 11:01:20 -08:00
Add ankle chain for IK
This commit is contained in:
1 parent
f9c08e5ec7
commit
f58cb7dfcf
2 files changed
+9
-1
No files matched your search
@@ -27,6 +27,14 @@ val BODY_PART_IK_CHAIN_MAP: BodyPartMap<IKChain> = BodyPartMap(
|
||||
BodyPart.WAIST,
|
||||
BodyPart.HIP,
|
||||
),
|
||||
BodyPart.LEFT_LOWER_LEG to listOf(
|
||||
BodyPart.LEFT_UPPER_LEG,
|
||||
BodyPart.LEFT_LOWER_LEG,
|
||||
),
|
||||
BodyPart.RIGHT_LOWER_LEG to listOf(
|
||||
BodyPart.RIGHT_UPPER_LEG,
|
||||
BodyPart.RIGHT_LOWER_LEG,
|
||||
),
|
||||
BodyPart.LEFT_FOOT to listOf(
|
||||
BodyPart.LEFT_UPPER_LEG,
|
||||
BodyPart.LEFT_LOWER_LEG,
|
||||
|
||||
@@ -10,7 +10,7 @@ import io.github.axisangles.ktmath.Quaternion
|
||||
import solarxr_protocol.datatypes.BodyPart
|
||||
|
||||
// The max height to plant feet by
|
||||
val ROTATION_CORRECTION_VERTICAL = 0.1f
|
||||
const val ROTATION_CORRECTION_VERTICAL = 0.1f
|
||||
|
||||
fun computeFootPlantRatio(
|
||||
ankleHeight: Float,
|
||||
|
||||
Reference in new issue
Block a user