Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: chilly on June 01, 2013, 11:25:38 AM

Title: Mecanim over Tnet
Post by: chilly on June 01, 2013, 11:25:38 AM
since mecanim over network hasnt been that much clear over in unity forums,

was wondering if Tnet will make this process a little easier of clear to work with.

any plans on a sample video tutorial on how to work with mecanim and Tnet?

Title: Re: Mecanim over Tnet
Post by: ArenMook on June 01, 2013, 02:20:16 PM
Mecanim is an animation system with a state machine, and TNet is a network library. As such, they are two very unrelated systems. It might help to know what you are trying to do.
Title: Re: Mecanim over Tnet
Post by: chilly on June 02, 2013, 12:29:09 AM
animation synchronizations over the network using mecanim
Title: Re: Mecanim over Tnet
Post by: ArenMook on June 02, 2013, 06:20:09 PM
I do not advise synchronizing animations. Animations are in visualization area. You should sync what would normally cause the animations to be triggered instead -- such as moving from A to B or jumping. For example instead of doing something like
  1. if (Input.GetKeyDown(KeyCode.Space)) Jump();
You should do:
  1. if (Input.GetKeyDown(KeyCode.Space)) tno.Send("Jump", Target.All);
Just don't forget to add the "RFC" tag in front of the jump function like so:
  1. [RFC] void Jump() { ... }
Title: Re: Mecanim over Tnet
Post by: SketchWork on June 03, 2013, 06:13:51 AM
Yes Chilly, this is exactly what we do successfully.  You only need to sync the animation triggers and everything will work fine.