Brainstorming: Physics and Packet Handling for Entities
#16
Each entity lives in a cWorld instance, but besides that it is also assigned to a cChunk instance, to the correct chunk. If the entity moves, naturally it may cross chunk borders, so it has to be moved to the correct chunk - removed from the old one and added to the new one.
However, there are special cases when the entity is not removed from the old chunk - such as spawning the entity, or teleporting between worlds. That's what the a_bIgnoreOldChunk does.
(Hope I remember this correctly Smile )
Reply
Thanks given by:


Messages In This Thread
RE: Brainstorming: Physics and Packet Handling for Entities - by xoft - 03-26-2013, 05:25 PM



Users browsing this thread: 1 Guest(s)