Page 1 of 1

Object <-> Object collision handling

PostPosted: Sun Feb 05, 2012 16:44
by sapier
based on kahrls stairs branch I've added object collision handling. I've only made it fully operational for luaentitys and player objects as items don't need it and c++ mobs are most likely to be removed.
LuaEntities do honor the "pysical" flag, collision handling is only done for physical = true.

It's only a proove of concept some changes need to be considered if there might be better solutions

https://github.com/sapier/minetest/tree/object_object_collision

PostPosted: Mon Feb 06, 2012 02:08
by dannydark
Does this require Kahrls collision branch to work?

I will test it later so was just wondering.

PostPosted: Mon Feb 06, 2012 08:21
by sapier
this branch is based on kahrls so its already included.

PostPosted: Mon Feb 06, 2012 09:22
by dannydark
Ah yeh sorry I didn't see your merge message when I checked earlier haha, just wasn't looking properly.

PostPosted: Tue Feb 07, 2012 15:54
by sapier
I've moved the getCollisionBox function from ActiveObject to a separate interface class this will reduce changes necessary