From 02e145cb923d601395acc7f15ae9e13f85ef2fbb Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 02 Jul 2018 21:38:58 -0400 Subject: [PATCH] Hip orientation. --- ScriptNode.java | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ScriptNode.java b/ScriptNode.java index 4ba4bbb..6e25865 100644 --- a/ScriptNode.java +++ b/ScriptNode.java @@ -997,12 +997,12 @@ if (command.equals("fromto")) { cVector from = new cVector(Float.parseFloat(strs[index+2]), - Float.parseFloat(strs[index+3]), - Float.parseFloat(strs[index+4])); + 0, // Float.parseFloat(strs[index+3]), + Float.parseFloat(strs[index+3])); - cVector to = new cVector(Float.parseFloat(strs[index+5]), - Float.parseFloat(strs[index+6]), - Float.parseFloat(strs[index+7])); + cVector to = new cVector(Float.parseFloat(strs[index+4]), + 0, // Float.parseFloat(strs[index+6]), + Float.parseFloat(strs[index+5])); ((Mocap) object).AddFromTo(from, to); return; @@ -1301,7 +1301,9 @@ { Mocap mocap = (Mocap) object; - mocap.SetPositionDelta(false, true, false, true); + //mocap.SetPositionDelta(false, true, false, true); + mocap.Rewind(); + mocap.Fade(); } else new Exception().printStackTrace(); -- Gitblit v1.6.2