#help

1 messages · Page 1 of 1 (latest)

quiet latch
#

Try to apply the mesh to a separate gameobject that is not a child of the enemy

chilly latch
#

Alright

#

So I don't seem to understand this very well but it worked
I created new gameobject, positioned to zero

#

and it worked

quiet latch
#

Yes

#

Exactly

chilly latch
#

Yeah trying to wrap my head around this

quiet latch
#

Whe raycasting you return a world position, this means the mesh is made in world space, if you the child the mesh to the player it will be offset by the player position making it incorrect again

chilly latch
#

So I was supposed to get the position in localspace?

quiet latch
#

You can child it and subtract the player position from the mesh

#

Or maybe change the pivot of the mesh

#

Not sure

chilly latch
#

Yeah okay, I get it

#

I will play around to understand the behavior of vertex position

#

But thank you a lot!