# Get entity position where animation ends

**URL:** <https://forum.playcanvas.com/t/get-entity-position-where-animation-ends/38352>\
**Category:** Help & Support\
**Tags:** scripting, graphics, physics, editor, animation\
**Created:** [November 28, 2024, 6:12am UTC](https://forum.playcanvas.com/t/get-entity-position-where-animation-ends/38352 "2024-11-28T06:12:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hassan\_Amjad1](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/hassan_amjad1/32/22404_2.png) [@Hassan\_Amjad1](https://forum.playcanvas.com/u/Hassan_Amjad1)\
**Post date:** [November 28, 2024, 6:12am UTC](https://forum.playcanvas.com/t/get-entity-position-where-animation-ends/38352/1 "2024-11-28T06:12:37Z")

</div>

Hi,  
I am using an animation which puts players to new position after getting hit from an object. Player changes it’s position via animation but when animation ends, the player gets restored to the position before animation was played which makes sense. I want to get position of player where the animations ends. Is there any possibility to this?

---

<div class="post-metadata">

**Author:** ![Albertos](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/albertos/32/19749_2.png) [@Albertos](https://forum.playcanvas.com/u/Albertos)\
**Post date:** [November 28, 2024, 7:00am UTC](https://forum.playcanvas.com/t/get-entity-position-where-animation-ends/38352/2 "2024-11-28T07:00:04Z")

</div>

Hi @Hassan_Amjad1!

You probably can add an event to your animation end and get the position of your animated entity to set the position of the root entity afterwards.

> **[Anim Events | PlayCanvas Developer Site](https://developer.playcanvas.com/user-manual/animation/anim-events/)**
>
> Anim events can be used to trigger event listeners during the playback of an animation. Each event is associated with a specified frame of the animation asset it is attached to. When the playback of the animation reaches that frame, the event will...
