Synchronized TTC 2d rotator
This commit is contained in:
parent
e1ca3b963d
commit
cbeea0472c
|
@ -40,6 +40,15 @@ void bhv_ttc_2d_rotator_init(void) {
|
|||
o->oTTC2DRotatorMinTimeUntilNextTurn =
|
||||
sTTC2DRotatorTimeBetweenTurns[o->oBehParams2ndByte][gTTCSpeedSetting];
|
||||
o->oTTC2DRotatorIncrement = o->oTTC2DRotatorSpeed = sTTC2DRotatorSpeeds[o->oBehParams2ndByte];
|
||||
|
||||
struct SyncObject* so = network_init_object(o, 4000.0f);
|
||||
so->minUpdateRate = 5.0f;
|
||||
network_init_object_field(o, &o->oTTC2DRotatorMinTimeUntilNextTurn);
|
||||
network_init_object_field(o, &o->oTTC2DRotatorTargetYaw);
|
||||
network_init_object_field(o, &o->oTTC2DRotatorIncrement);
|
||||
network_init_object_field(o, &o->oTTC2DRotatorRandomDirTimer);
|
||||
network_init_object_field(o, &o->oFaceAngleYaw);
|
||||
network_init_object_field(o, &o->oAngleVelYaw);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue