Mobs refactoring
#9
Quote:I don't quite get the chunk grabbing you're proposing
I could be wrong, but I think MCS stores nearby to players chunks in RAM, right? Why can't we just took those objects' pointers (chunks' pointers) and use their data?
Quote:Only when a mob is within a 16 block distance to any player (plain L1 or euclidean metric, no matter what the blocks are), let them grab the full 32^3
Tiny trick: if mob is close make a raycast first, if mob spotted player - then grab bigger area... That's my thought.

And even more: make a pyramid/cone, similar to culling space of camera, and check if mob-player line is inside it. Then raycast and then grab an area.
Reply
Thanks given by:


Messages In This Thread
Mobs refactoring - by xoft - 05-31-2012, 09:22 PM
RE: Mobs refactoring - by Taugeshtu - 05-31-2012, 09:29 PM
RE: Mobs refactoring - by xoft - 05-31-2012, 09:32 PM
RE: Mobs refactoring - by Taugeshtu - 05-31-2012, 09:38 PM
RE: Mobs refactoring - by xoft - 05-31-2012, 09:43 PM
RE: Mobs refactoring - by Taugeshtu - 05-31-2012, 09:51 PM
RE: Mobs refactoring - by NiLSPACE - 05-31-2012, 11:21 PM
RE: Mobs refactoring - by xoft - 05-31-2012, 11:23 PM
RE: Mobs refactoring - by Taugeshtu - 06-01-2012, 12:08 AM
RE: Mobs refactoring - by NiLSPACE - 06-01-2012, 12:40 AM
RE: Mobs refactoring - by xoft - 06-01-2012, 02:33 AM
RE: Mobs refactoring - by NiLSPACE - 06-01-2012, 02:35 AM



Users browsing this thread: 7 Guest(s)