Enemy goes halfway inside my cubes

When I execute the couroutine, my enemy transform goes halfway inside the cube transform so I had to add this new Vector to the code

image

is there a reason why this doesnt happen in the video but it does for me?

When moving :

Before moving :

Hi Zodi,

Gary moved the cubes down. Alternatively, you could move the child (with the mesh) of the enemy up. Or you could add an z-offset to the transform.position like you did. All three solutions are valid. :slight_smile:


See also:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms