overte icon indicating copy to clipboard operation
overte copied to clipboard

VR teleporting can't land on PolyVox entity

Open ada-tv opened this issue 8 months ago • 2 comments

ada-tv avatar Apr 06 '25 14:04 ada-tv

this is implemented and I thought it worked at one point, probably something wrong in this method: https://github.com/overte-org/overte/blob/83c15951908f7393ff3d4e9838886c81d54c4fc6/libraries/entities-renderer/src/RenderablePolyVoxEntityItem.cpp#L578

the idea was to first see if the parabola hits the bounding box, and then start from that point (or the original start if it’s inside the box), find if it hits a slightly larger box, which was supposed to be where the parabola leaves the box, and break that distance into 15 line segment approximations to test against (since the polyvox library only supports ray casts)

but thinking about it now, that doesn’t handle cases where the parabola starts inside the first box, exits the second box like if you were pointing upwards, and then comes back down…still, I’d expect it to work if you were outside the bounding box pointing at the surface?

HifiExperiments avatar Apr 08 '25 07:04 HifiExperiments

I think this might have just been caused by a PolyVox with ignorePickIntersection enabled

ada-tv avatar Apr 28 '25 20:04 ada-tv

Teleporting on PolyVox works, this issue was posted by mistake. The PolyVox that I encountered this on had ignorePickIntersection enabled, which also ignores the teleport parabola pick.

ada-tv avatar Sep 02 '25 12:09 ada-tv