These past couple of days I've been trying to get the physics based wires into my game - I've been collaborating with lecturers and found some help. I've had many suggestions and ideas of how it should be done. The code I found of the internet turned out to be A. broken and B. very computer intensive because it was constantly making 3D tubes with old outdated code. I have come to a solution and that is making a string of physics joints without any mesh or renderer, and using the position of the joints to simply draw a line connecting them all.
I thought I could remove all of the rendering code form the code I found on the internet and get it to work; I did to a certain extent, but after some research it seems to be it wouldn't take long to learn a bit more about physics joints and completely make the code I need for myself.
so that's probably what I will be doing for the next couple of days at least.
Additionally I have made the code I already had in the game much more efficient; some things were being done once or twice every frame, which could have been done once every time the player interacts; so that is fixed now too.
No comments:
Post a Comment