Brainstorming: Physics and Packet Handling for Entities
#10
I implemented the BroadcastMovementUpdate function and moved m_Pos,m_Rot, and m_Speed to private members (wow, there were a lot of places where they were used hehe... tons of refactoring Smile). I test falling sand, some regular player movement and some mobs and it seems ok. So, can someone please do some more regression testing to make sure I didn't break anything? Smile

This is the first step, now I am going to look to see if I can optimize some of the refactored code that I just did. Maybe add some helper functions like AddSpeedX, AddSpeedY, AddSpeedZ, AddPosX, AddPosY, AddPosZ, AddPos, etc...

PS: Also, I added the physics function call in the mobs class, so now they can move. They move kind of goofy, but that's the AI.
Reply
Thanks given by:


Messages In This Thread
RE: Brainstorming: Physics and Packet Handling for Entities - by keyboard - 03-22-2013, 04:45 PM



Users browsing this thread: 1 Guest(s)