Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line Trace to Real Objects #7

Open
KutlayTunc opened this issue Feb 4, 2025 · 1 comment
Open

Line Trace to Real Objects #7

KutlayTunc opened this issue Feb 4, 2025 · 1 comment

Comments

@KutlayTunc
Copy link

Hello people,

I am using Unreal Engine 5.5.2 with MetaXR 72.0.1.

I have been experimenting with this project for a while, but I couldn't find a way to perform a line trace in the real world. The Depth API documentation mentions that ray cast can be used, but I couldn't find any information on how to do it. I also couldn't spot anything related to this in the project's programming.

Simply put, I want to cast a line trace forward from the camera and have it collide with real-world objects based on depth information (for example, a stationary wardrobe or a moving ball). This way, I can determine how far the object is from the camera.

If you could point me to a resource or provide guidance, I would greatly appreciate it. Thanks in advance!

@KutlayTunc
Copy link
Author

I found this piece in the Unity documentation. It's probably not available in Unreal because it's still in beta.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant