Im on it right now . Thank you two so so much, That really made my day
Hii its me again but this time i have another problem
Do you know how i can make the Ai Rotate to the player and have a better Ai code into it?
Maybe my Basic enemy AI example project can help you. You can check the topic below.
Iβll Check into it and let you know how thinking go after i take a look at the project. Thank you !!
OKAY so basically this is the same error that happened to me before with the Mai Project i created, the animation works but the rotation goes backwards and away from the player
You can try to rotate the model of your character 180 degrees. For this your model need to be a child entity of the entity with the script.
You also need to apply an offset to your collision component so it get the right position.
How do i apply the collision component offset ? i can make you a editor because you know how to it and iβm not use how to do it but a did rotate the characters 180
You can find the settings on the collision component.
Does that solve the problem?
Its not working and i see the offset option but even how i use it itβs still not rotating when the gameplay starts
The collision offset has nothing to do with the rotation. I mentoined this because of the first picture you shared.
If you share the editor link of your project I can take a look.
I just linked you to it - Overview - PlayCanvas 3D HTML5 Game Engine
Editor - PlayCanvas | HTML5 Game Engine
I created an example enemy in your project. It seems to work good now.
Just tested it and now it seems to go very well as i had in mind !!
Thank you so much for your time