mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 04:12:46 +02:00
Create entities from avatar a bit lower to be able to transform them away from the user easier
This commit is contained in:
parent
7bbedf65c7
commit
dd6801219b
1 changed files with 0 additions and 1 deletions
|
@ -1739,7 +1739,6 @@ function getPositionToCreateEntity(extra) {
|
||||||
position = Vec3.sum(Camera.position, Vec3.multiply(Quat.getForward(Camera.orientation), CREATE_DISTANCE + delta));
|
position = Vec3.sum(Camera.position, Vec3.multiply(Quat.getForward(Camera.orientation), CREATE_DISTANCE + delta));
|
||||||
} else {
|
} else {
|
||||||
position = Vec3.sum(MyAvatar.position, Vec3.multiply(Quat.getForward(MyAvatar.orientation), CREATE_DISTANCE + delta));
|
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) {
|
if (position.x > HALF_TREE_SCALE || position.y > HALF_TREE_SCALE || position.z > HALF_TREE_SCALE) {
|
||||||
|
|
Loading…
Reference in a new issue