#Camera.screenPointToRay in DOTS

1 messages · Page 1 of 1 (latest)

worldly rune
#

Hi, I'm trying to get a world point from mouse position. I'm trying to get Camera.main, and use screenPointToRay. I'm new to dots, what would be the correct way to do it?

dire jolt
#

You using unity.physics in your game ?

#

I suppose you are trying to hit an entity or something like that ?

worldly rune
dire jolt
#

you have to kinda do it yourself

#

you need to do the raycast in the physics world

spark thistle
#

i actually just have a system that grabs the screenpointtoray and throws the result on a component every frame

#

so i can access it from burst anywhere

spark thistle
#

oh i just merged the branch