Hi Julien!
2012/10/22 Julien Ryard (ENSAM) <
julien...@ensam.eu>:
> Hi.
>
> I use dtEntity in a multi threaded application.
>
> I want to use dtEntityNet in order to synchronize my entities positions and
> orientation.
> But I have 2 problems :
>
> - I use the FPW DeadReckoningAlgorithm , and when I have a rotation with an
> angle negative, messages are'nt sended.
> The problem is when we check the max deviation, we only check for positive
> angle.
OK, this is certainly possible. I barely got the dtEntityNet stuff
running, it is not really tested through yet. I just posted a fix to
SVN that may or may not fix your issue. You are also welcome to poke
around the source for bugs - especially the rotation handling is a bit
dodgy. One thing I will definitely have to change at some point: the
angular velocity is stored in the dynamics component as a quaternion.
This seems to be a bad idea as quaternions are not good for storing
that, I will have to change to HPR values at some point.
>
> - For my second problem, I want to spawn entities from script. But when we
> spawn our entity, a message is sended with the EntityType and UniqueId. And
> those values could not be setted in script, and could not be setted in the
> editor too. The problem is that only DeadReckoningAlgorithm is a property
> dynamic.
The JoinMessage is sent when you call MapSystem::AddToScene(entityid).
You can set the UniqueId and EntityType properties of the
DeadReckoningSenderComponent before adding the entity to the scene.
Cheers,
Martin