|Topic was automatically imported from the old Question2Answer platform.
i picked up the godot engine a short while ago, coming from unity before.
a specific issue i have now is with raycasting, which i need to make a gameobject look at the mouse in worldspace.
(Exactly like the example in this video: https://www.youtube.com/watch?v=mmvIkkKJVlQ )
I know that starting in 4.0 means some stuff has changed, and 'm pretty sure my raycast syntax itself is ok, but the issue arises in finding .get_vieuwport()
When i attatch the script to a 3d node/camera/player… i got the error stating that the function getvieuwport() cannot be found on self.
i have scoured the internet for hours on end, but nowhere do i find a solution.
is this solvable with attachign a subvieuwport in the node hierarchy and somehow referencing this?