예제 #1
0
        public override void Export(BehaviorXml details)
        {
            details.SetParameter("x_velocity", Velocity.X);

            details.SetParameter("y_velocity", Velocity.Y);

            details.SetParameter("z_velocity", Velocity.Z);
        }
예제 #2
0
        public override void Export(BehaviorXml details)
        {
            for (var index = 0; index < Branches.Count; index++)
            {
                var branch = Branches[index];

                details.SetParameter($"behavior {index + 1}", branch);
            }
        }
예제 #3
0
        public override void Export(BehaviorXml details)
        {
            details.SetParameter("lookat_x", LookAt.X);

            details.SetParameter("lookat_y", LookAt.Y);

            details.SetParameter("lookat_z", LookAt.Z);

            details.SetParameter("pos_x", Position.X);

            details.SetParameter("pos_y", Position.Y);

            details.SetParameter("pos_z", Position.Z);
        }