Gettiing CursorPos in a Entity's space

I have a question about getting vectors/angles of a entity in it’s space.

I’ve been messing around with LocalToWorld and WorldToLocal.

The question: Is there a way to get the specific vectors of my cursoraim in the entitys space, but not the position in the world?

(or any tools that are open source)

WorldToLocal should do just that.

I’ve worked around with it, but can’t figure it out even after reading through the github.

Any suggestions to this snip?

edit: working code



	MsgN(Player:GetEyeTrace().Entity:WorldToLocal(Player:GetEyeTrace().HitPos))


snip

read above. Solved.

Thanks, Neth for the support.

No prob - mark solved now.