Kneel.js: Added comment to clearify js API

This commit is contained in:
Anthony J. Thibault 2015-11-16 11:37:12 -08:00
parent 55adedcec8
commit 516aff2ee0

View file

@ -57,6 +57,8 @@ function kneelDown() {
var startFrame = 0;
var endFrame = 82;
// This will completly override all motion from the default animation system
// including inverse kinematics for hand and head controllers.
MyAvatar.overrideAnimation(KNEEL_ANIM_URL, playbackRate, loopFlag, startFrame, endFrame);
Overlays.editOverlay(kneelDownButton, { visible: false });
@ -66,6 +68,8 @@ function kneelDown() {
function standUp() {
kneeling = false;
// this will restore all motion from the default animation system.
// inverse kinematics will work again normally.
MyAvatar.restoreAnimation();
Overlays.editOverlay(standUpButton, { visible: false });