mirror of
https://github.com/AleziaKurdis/Overte-community-apps.git
synced 2025-04-10 17:02:08 +02:00
Merge pull request #39 from AleziaKurdis/FixDopplegangerPosition
Fix doppleganger height positioning issue
This commit is contained in:
commit
c13d210db4
2 changed files with 6 additions and 4 deletions
|
@ -172,7 +172,7 @@ Doppleganger.prototype = {
|
|||
}
|
||||
|
||||
this.frame = 0;
|
||||
this.position = options.position || Vec3.sum(avatar.position, Quat.getForward(avatar.orientation));
|
||||
this.position = options.feetPosition || Vec3.sum(avatar.feetPosition, Quat.getForward(avatar.orientation));
|
||||
this.orientation = options.orientation || avatar.orientation;
|
||||
this.skeletonModelURL = avatar.skeletonModelURL;
|
||||
this.jointStateCount = 0;
|
||||
|
@ -189,7 +189,8 @@ Doppleganger.prototype = {
|
|||
visible: false, // normally false
|
||||
modelURL: this.skeletonModelURL, //was field: url
|
||||
position: this.position,
|
||||
rotation: this.orientation
|
||||
rotation: this.orientation,
|
||||
useOriginalPivot: true
|
||||
};
|
||||
|
||||
this.entityID = Entities.addEntity(prop, "local");
|
||||
|
|
|
@ -172,7 +172,7 @@ Doppleganger.prototype = {
|
|||
}
|
||||
|
||||
this.frame = 0;
|
||||
this.position = options.position || Vec3.sum(avatar.position, Quat.getForward(avatar.orientation));
|
||||
this.position = options.feetPosition || Vec3.sum(avatar.feetPosition, Quat.getForward(avatar.orientation));
|
||||
this.orientation = options.orientation || avatar.orientation;
|
||||
this.skeletonModelURL = avatar.skeletonModelURL;
|
||||
this.jointStateCount = 0;
|
||||
|
@ -189,7 +189,8 @@ Doppleganger.prototype = {
|
|||
visible: false, // normally false
|
||||
modelURL: this.skeletonModelURL, //was field: url
|
||||
position: this.position,
|
||||
rotation: this.orientation
|
||||
rotation: this.orientation,
|
||||
useOriginalPivot: true
|
||||
};
|
||||
|
||||
this.entityID = Entities.addEntity(prop, "local");
|
||||
|
|
Loading…
Reference in a new issue