How to get world position from mouse position? #2226
-
The method like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Not built in but we have a community toolkit of extensions like these. This is the code for the screen to world that you are looking for. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/stride3d/stride-community-toolkit/blob/53bff1597c8698eeb8176ef7a95add612687c72e/src/Stride.CommunityToolkit/Engine/CameraComponentExtensions.cs#L103 https://www.nuget.org/packages/Stride.CommunityToolkit/1.0.0-preview.38 |
Beta Was this translation helpful? Give feedback.
https://github.com/stride3d/stride-community-toolkit/blob/53bff1597c8698eeb8176ef7a95add612687c72e/src/Stride.CommunityToolkit/Engine/CameraComponentExtensions.cs#L103
and this is the method to shoot a ray from the mouse position
https://www.nuget.org/packages/Stride.CommunityToolkit/1.0.0-preview.38
and here is the nuget