mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
Update teleport to not collide with non collidable entities
This commit is contained in:
parent
ee50469213
commit
813ed59f00
1 changed files with 2 additions and 2 deletions
|
@ -279,7 +279,7 @@ function Teleporter() {
|
|||
var location = Vec3.sum(rightPickRay.origin, Vec3.multiply(rightPickRay.direction, 50));
|
||||
|
||||
|
||||
var rightIntersection = Entities.findRayIntersection(teleporter.rightPickRay, true, [], [this.targetEntity], true);
|
||||
var rightIntersection = Entities.findRayIntersection(teleporter.rightPickRay, true, [], [this.targetEntity], true, true);
|
||||
|
||||
if (rightIntersection.intersects) {
|
||||
if (this.tooClose === true) {
|
||||
|
@ -342,7 +342,7 @@ function Teleporter() {
|
|||
var location = Vec3.sum(MyAvatar.position, Vec3.multiply(leftPickRay.direction, 50));
|
||||
|
||||
|
||||
var leftIntersection = Entities.findRayIntersection(teleporter.leftPickRay, true, [], [this.targetEntity], true);
|
||||
var leftIntersection = Entities.findRayIntersection(teleporter.leftPickRay, true, [], [this.targetEntity], true, true);
|
||||
|
||||
if (leftIntersection.intersects) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue