Synchronized TTC pendulum

This commit is contained in:
MysterD 2020-10-11 14:38:56 -07:00
parent 788dc5310c
commit 4cb089c428
1 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,15 @@ void bhv_ttc_pendulum_init(void) {
} else {
o->oTTCPendulumAngle = 6371.5557f;
}
struct SyncObject* so = network_init_object(o, 4000.0f);
so->minUpdateRate = 5.0f;
network_init_object_field(o, &o->oTTCPendulumAccelDir);
network_init_object_field(o, &o->oTTCPendulumAngle);
network_init_object_field(o, &o->oTTCPendulumAngleVel);
network_init_object_field(o, &o->oTTCPendulumAngleAccel);
network_init_object_field(o, &o->oTTCPendulumDelay);
network_init_object_field(o, &o->oTTCPendulumSoundTimer);
}
/**