RayCast in direction of sprite facing

Hi,

I have an object (which hold a tk2dsprite) which can rotate on the Z axis… i just want to cast a ray in the direction of the red line (depending on the Z axe rotation of the object)

How do i proceed for this ? Forward doesn’t seem to head that way. Any ideas ?

Thanks you!

@NoradZero Try using this.transform.right

@spryx
Awesome mate! I feel a bit stupid through… i looked for transform.forward but didn’t find anything regarding right at first lookup haha

Thanks !