Brainstorming: Physics and Packet Handling for Entities
#17
(03-26-2013, 05:25 PM)xoft Wrote: 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 )

Seems about right Cool
Reply
Thanks given by:


Messages In This Thread
RE: Brainstorming: Physics and Packet Handling for Entities - by FakeTruth - 03-27-2013, 05:23 AM



Users browsing this thread: 4 Guest(s)