Hi,

There is no way to change the hierarchy because parent-child relationship
between actors mean a supervision link which cannot be broken. The problem
here is that you try to use the supervision hierarchy to model a completely
unrelated data structure which is not about supervision but "storage" of
entities. I recommend to rethink your model and use normal data structures
to handle your hierarchy of scene elements.

-Endre

On Tue, Feb 3, 2015 at 4:34 PM, <[email protected]> wrote:

> Hello,
>
> I am creating a rendering system in my game engine.
>
> I found that Akka is a good solution for this.
>
> My quesion is:
>
> Is there any way to change actor's hierarchy (eg: orphan actor)
>
> For instance, a scene graph:
>
> - Terrain
>
> - TankUUID12345
>
>   - TurretUUID67890
>
> Tank's actor path is user/TankUUID12345.
>
> Tank Turret's actor path is user/TankUUID12345/TurretUUID67890.
>
> When TankUUID12345 destroy, I expect TurretUUID67890 be still in the scene
> but orphan.
>
> Path should be changed: user/TankUUID12345/TurretUUID67890 change to
> user/TurretUUID67890
>
> Any advice would be very appreciated.
>
> Very thanks.
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to