This should be simple!
I'm trying to instantiate a particle effect on my character, and i need it to be +1 on the Z axis of the characters local space. i.e. so its always +1 in front of the character.
This is my current code:
public void PlayEffect()
{
Instantiate(slashEffect, wielder.transform.position + new Vector3 (0, 1, 1), wielder.transform.rotation) ;
}
Currently this is causing it to spawn always z+1 in world space, meaning sometimes its infront of my character and sometimes its behind me, depending on which way i'm facing.
What is the correct way to do this? :)