Hi,
I was wondering if anyone could help me with how to calculate object and sfx positions? This is my first time playing around with Flyff files and I've never played the game so I'm pretty clueless.
This is what it is so far (red is for objects, blue for sfx, ignore the terrain texture I haven't figured out tiling fully yet)
using the code
Any help would be greatly appreciated.Code:for (int j = 0; j < objectCount; j++) { int type = fh.Read<int>(); switch (type) { case 0: { fh.Read<float>(); fh.Read<float>(); fh.Read<float>(); fh.Read<float>(); Vector3 position = new Vector3() { X = fh.Read<float>(), Y = fh.Read<float>(), Z = fh.Read<float>() }; Vector3 scale = new Vector3() { X = fh.Read<float>(), Y = fh.Read<float>(), Z = fh.Read<float>() }; fh.Read<int>(); int modelID = fh.Read<int>(); fh.Read<int>(); fh.Read<int>(); fh.Read<int>(); models.Add(new Model() { Position = position, Scale = scale, ModelID = modelID }); } break; } }
Thanks,
xadet





