Constrain attribute vs. unlocking an actor and accessing other actors through layers
I want to jump on an enemy to kill it.
Should I constrain player bottom and enemy bottom to their y positions. So player dies on collision when playerbottom < enemybottom
OR
Should I unlock the player then go through the layers and make player die on collision when self position y < enemy self position y
Which option is the best for optimization? Thanks
Should I constrain player bottom and enemy bottom to their y positions. So player dies on collision when playerbottom < enemybottom
OR
Should I unlock the player then go through the layers and make player die on collision when self position y < enemy self position y
Which option is the best for optimization? Thanks
Answers