im using the spider enemy from the infinity blade assets. I set it up to switch to the attack animation when the player gets close to it. I noticed that the player does not take damage when the spider attacks, but if the player keeps moving to the spot where the spider originally was standing (the capsule component) then he does start taking damage. I enabled root motion in the attack animation, but that didnt seem to do anything. When i simulate the game and click on the spider after it attacks, i can see that the capsule component did not move at all. Does anybody know why this would not be working?
I don’t know the setup of the spider, but from you description it sounds like it’s setup to cause damage when the capsule touches the player? I would try to debug this using some print statements and see if the hit event stops firing during root motion.
Anyway, another thing you can check is to uncheck “Hidden in game” for the capsule to verify the capsule does indeed not move. Oh and one more thing… make sure that the animation does indeed have movement on the root joint. Hope that helps.
ive tried doing hit and overlap events with the spiders capsule, the mesh, a sphere that was attached to a socket on the mesh, and a capsule that i tried attqaching to the socket. i already checked in simulation, the capsule is not moving. When you say “animation has movement on the root joint” What exactly does that mean?