adding domainLimitedScale property

This commit is contained in:
Wayne Chen 2018-08-09 17:29:13 -07:00
parent 19ad9c52da
commit d533e3b341
2 changed files with 4 additions and 2 deletions
interface/src/avatar
libraries/avatars/src

View file

@ -143,7 +143,8 @@ class MyAvatar : public Avatar {
* registration point of the 3D model.
*
* @property {Vec3} position
* @property {number} scale
* @property {number} scale - The target scale in which the avatar is set to by the user.
* @property {number} domainLimitedScale - The avatar's scale limited by the domain.
* @property {number} density <em>Read-only.</em>
* @property {Vec3} handPosition
* @property {number} bodyYaw - The rotation left or right about an axis running from the head to the feet of the avatar.
@ -982,7 +983,7 @@ public:
/**jsdoc
* @function MyAvatar.getAvatarScale
* @returns {number}
* @returns {number}
*/
Q_INVOKABLE float getAvatarScale();

View file

@ -364,6 +364,7 @@ class AvatarData : public QObject, public SpatiallyNestable {
// The following properties have JSDoc in MyAvatar.h and ScriptableAvatar.h
Q_PROPERTY(glm::vec3 position READ getWorldPosition WRITE setPositionViaScript)
Q_PROPERTY(float scale READ getTargetScale WRITE setTargetScale)
Q_PROPERTY(float domainLimitedScale READ getDomainLimitedScale)
Q_PROPERTY(float density READ getDensity)
Q_PROPERTY(glm::vec3 handPosition READ getHandPosition WRITE setHandPosition)
Q_PROPERTY(float bodyYaw READ getBodyYaw WRITE setBodyYaw)