mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 18:30:42 +02:00
Update shortbow spawning to use precise picking to find the ground
This commit is contained in:
parent
85099513cd
commit
e47b1be9cf
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ utils = {
|
||||||
var result = Entities.findRayIntersection({
|
var result = Entities.findRayIntersection({
|
||||||
origin: pos,
|
origin: pos,
|
||||||
direction: { x: 0.0, y: -1.0, z: 0.0 }
|
direction: { x: 0.0, y: -1.0, z: 0.0 }
|
||||||
});
|
}, true);
|
||||||
if (result.intersects) {
|
if (result.intersects) {
|
||||||
return result.intersection;
|
return result.intersection;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue