1

Topic: Problems with projectiles

Hi,

Projectiles' rotation and position are not correct when a character move laterally, as you can see here :

https://streamable.com/yybu3z


I think it's 2 distinct issues that are happening at the same time, one involving the particle's rotation and another one involving the projectile's position, is there a solution?

Thanks

Share

Thumbs up Thumbs down

Re: Problems with projectiles

You could try adding a script to the projectile prefab that corrects its rotation on spawn:

    public ProjectileMoveScript projectile;

    void Start()
    {
        projectile = GetComponent<ProjectileMoveScript>();
        transform.rotation = projectile.myControlsScript.transform.rotation;
    }
Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.
Don't forget to check our discord channel.

3

Re: Problems with projectiles

Thank you, the rotation is now correct.

For the problem with the position, I found a workaroud by creating custom hitboxes and making projectiles start from there.

Thanks again! smile

Share

Thumbs up Thumbs down