Author Topic: Mecanim over Tnet  (Read 4715 times)

chilly

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Mecanim over Tnet
« 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?


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Mecanim over Tnet
« Reply #1 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.

chilly

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: Mecanim over Tnet
« Reply #2 on: June 02, 2013, 12:29:09 AM »
animation synchronizations over the network using mecanim

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Mecanim over Tnet
« Reply #3 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() { ... }

SketchWork

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 44
    • View Profile
Re: Mecanim over Tnet
« Reply #4 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.