public override void Export(BehaviorXml details) { details.SetParameter("x_velocity", Velocity.X); details.SetParameter("y_velocity", Velocity.Y); details.SetParameter("z_velocity", Velocity.Z); }
public override void Export(BehaviorXml details) { for (var index = 0; index < Branches.Count; index++) { var branch = Branches[index]; details.SetParameter($"behavior {index + 1}", branch); } }
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); }