Merge pull request #13959 from thoys/bug/create/createPosNewEntities

MS17841: CreateApp - Adjust default position of new entities
This commit is contained in:
John Conklin II 2018-09-10 14:45:56 -07:00 committed by GitHub
commit 29c80fc075
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1739,7 +1739,6 @@ function getPositionToCreateEntity(extra) {
position = Vec3.sum(Camera.position, Vec3.multiply(Quat.getForward(Camera.orientation), CREATE_DISTANCE + delta));
} else {
position = Vec3.sum(MyAvatar.position, Vec3.multiply(Quat.getForward(MyAvatar.orientation), CREATE_DISTANCE + delta));
position.y += 0.5;
}
if (position.x > HALF_TREE_SCALE || position.y > HALF_TREE_SCALE || position.z > HALF_TREE_SCALE) {