public static void UpdateBoundObjects(object rArgs) { foreach (var objBinding in Media.ObjectBindings) { if (Data.GetBit((int)ObjectBinding.ModeBit.Location, objBinding.Mode) == 1) { Agk.SetObjectPosition ( objBinding.Object.ResourceNumber, Agk.GetObjectWorldX(objBinding.Parent.ResourceNumber), Agk.GetObjectWorldY(objBinding.Parent.ResourceNumber), Agk.GetObjectWorldZ(objBinding.Parent.ResourceNumber) ); } if (Data.GetBit((int)ObjectBinding.ModeBit.Rotation, objBinding.Mode) == 1) { Agk.SetObjectRotation ( objBinding.Object.ResourceNumber, Agk.GetObjectWorldAngleX(objBinding.Parent.ResourceNumber), Agk.GetObjectWorldAngleY(objBinding.Parent.ResourceNumber), Agk.GetObjectWorldAngleZ(objBinding.Parent.ResourceNumber) ); } if (Data.GetBit((int)ObjectBinding.ModeBit.Scale, objBinding.Mode) == 1) { } if (Data.GetBit((int)ObjectBinding.ModeBit.Collision, objBinding.Mode) == 1) { } if (Data.GetBit((int)ObjectBinding.ModeBit.Frame, objBinding.Mode) == 1) { Agk.SetObjectAnimationFrame ( objBinding.Object.ResourceNumber, "", Agk.GetObjectAnimationTime(objBinding.Parent.ResourceNumber), 0.0f ); } if (Data.GetBit((int)ObjectBinding.ModeBit.Light, objBinding.Mode) == 1) { } } }