Browse Source

Updating sample scripts

TheComet 8 years ago
parent
commit
e134de1b18

+ 2 - 2
bin/Data/LuaScripts/45_InverseKinematics.lua

@@ -101,12 +101,12 @@ function CreateScene()
     solver_.algorithm = IKSolver.TWO_BONE
 
     -- Disable auto-solving, which means we can call Solve() manually.
-    solver_:SetFeature(IKSolver.AUTO_SOLVE, false)
+    solver_.AUTO_SOLVE = false
 
     -- Only enable this so the debug draw shows us the pose before solving.
     -- This should NOT be enabled for any other reason (it does nothing and is
     -- a waste of performance).
-    solver_:SetFeature(IKSolver.UPDATE_ORIGINAL_POSE, true)
+    solver_.UPDATE_ORIGINAL_POSE = true
 
     -- Create the camera.
     cameraRotateNode_ = scene_:CreateChild("CameraRotate")

+ 2 - 2
bin/Data/Scripts/45_InverseKinematics.as

@@ -104,12 +104,12 @@ void CreateScene()
     solver_.algorithm = IKAlgorithm::TWO_BONE;
 
     // Disable auto-solving, which means we can call Solve() manually.
-    solver_.SetFeature(IKFeature::AUTO_SOLVE, false);
+    solver_.AUTO_SOLVE = false;
 
     // Only enable this so the debug draw shows us the pose before solving.
     // This should NOT be enabled for any other reason (it does nothing and is
     // a waste of performance).
-    solver_.SetFeature(IKFeature::UPDATE_ORIGINAL_POSE, true);
+    solver_.UPDATE_ORIGINAL_POSE = true;
 
     // Create the camera.
     cameraRotateNode_ = scene_.CreateChild("CameraRotate");