how to create a mouse cursor that follows surface orientation in game (something like vertex paint tool in editor)
?
how to create a mouse cursor that follows surface orientation in game (something like vertex paint tool in editor)
?
Hello!
I would use decals!
Do a line trace and apply a decal… Move it every time you move the camera or the cursor
thanks. but the thing is i’m using a custom mouse input ( for first person shooter ) in this case mouse point ( the crosshair ) doesn’t stay in the center of the screen or follow the camera.
i tried get hit result under cursor didnt get what i wanted.
So you want your cursor to appear the same even if a part of it goes outside the surface? Like in the picture?
yep. that is what i’m trying to achieve
If so instead of decal you may spawn a plane mesh whit a masked/traslucent material, it will automatically scale down as you poin far from your perspective, you’ll need some vector calculations but it won’t be too hard to achieve, and you can also easily make material instances for different cursor types!
ah yes. it worked. thanks a lot :] .
thanks a lot . Everynones( person above :] ) method worked.