Skip to content

Commit

Permalink
Fix typos in MyAvatar set and get skeleton offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Zetaphor committed Aug 25, 2023
1 parent 1324261 commit e88ddc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/avatars-renderer/src/avatars-renderer/Avatar.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class Avatar : public AvatarData, public scriptable::ModelProvider, public MetaM
* @param {Vec3} offset - The skeleton offset to set.
* @example <caption>Raise your avatar off the ground a little.</caption>
* // Raise your avatar off the ground a little.
* MyAvatar.setSkeletonOffset({ x: 0, y: 0.1: z: 0 });
* MyAvatar.setSkeletonOffset({ x: 0, y: 0.1, z: 0 });
*
* // Restore its offset after 5s.
* Script.setTimeout(function () {
Expand All @@ -373,7 +373,7 @@ class Avatar : public AvatarData, public scriptable::ModelProvider, public MetaM
* @function MyAvatar.getSkeletonOffset
* @returns {Vec3} The current skeleton offset.
* @example <caption>Report your avatar's current skeleton offset.</caption>
* print(JSON.stringify(MyAvatar.getSkeletonOffset());
* print(JSON.stringify(MyAvatar.getSkeletonOffset()));
*/
Q_INVOKABLE glm::vec3 getSkeletonOffset() { return _skeletonOffset; }

Expand Down

0 comments on commit e88ddc3

Please sign in to comment.