Need some help with code


RE: Need some help with code
#2
The code will be more efficient and easier to understand if you represent points as a Vector3 and use something like Vector3.Transform instead of making everything a matrix. Linear algebra libraries have different conventions for whether matrices are row-major or column-major, which also influences the order of multiplication. I would recommend decomposing your accumulated matrices to make sure the translation, rotation, and scale matches what you would expect. It's easy to transpose or flip the order somewhere by mistake.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Need some help with code - by Max Murtazin - 2023-04-04, 19:26
RE: Need some help with code - by Jonathan N - 2023-04-04, 21:02
RE: Need some help with code - by Jonathan N - 2023-04-04, 22:26
RE: Need some help with code - by Jonathan N - 2023-04-04, 23:50

Forum Jump:


Users browsing this thread: 1 Guest(s)