The title explains it. Thanks!
COMMUNITY QUESTION
How to make a more precise mouse.hit.p?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
The title explains it. Thanks!
This discussion is preserved as it was. New answers, comments, and votes are closed.
9 comments
I think that's the more precise we can get, as its the only way on getting the mouse target position
Alright. I will see if anyone else can tell me othervise
wise*
Note: You can edit your comment by clicking on its text
Oh wow, thanks!
Can you elaborate? What do you mean more precise? I don't think that exists? Mouse.Hit is the CFrame of the Mouse in 3D space. Mouse.Hit.p is the Vector3 position of the CFrame in 3D space. It's pretty precise.
FYI, Mouse.Hit.p is deprecated, use Mouse.Hit.Position (or CFrame.Position)
hey, there is a way using userinputservice and making a ray and then extending it and stuff, let me find a link to it.
https://developer.roblox.com/en-us/api-reference/function/Camera/ScreenPointToRay at the bottom it shows a code sample of how to use it for mouse.hit.position. The ScreenPointToRay draws a ray, however that ray is limited length so we just amke a new normal ray to replace itm