Object <-> Object collision handling

sapier
Member
 
Posts: 763
Joined: Tue Aug 16, 2011 18:17

Object <-> Object collision handling

by sapier » Sun Feb 05, 2012 16:44

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
Last edited by sapier on Sun Feb 05, 2012 16:45, edited 1 time in total.
DON'T mention coding style!
(c) sapier all rights reserved
 

User avatar
dannydark
Member
 
Posts: 428
Joined: Fri Aug 12, 2011 21:28

by dannydark » Mon Feb 06, 2012 02:08

Does this require Kahrls collision branch to work?

I will test it later so was just wondering.
Last edited by dannydark on Mon Feb 06, 2012 02:08, edited 1 time in total.
 

sapier
Member
 
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Mon Feb 06, 2012 08:21

this branch is based on kahrls so its already included.
DON'T mention coding style!
(c) sapier all rights reserved
 

User avatar
dannydark
Member
 
Posts: 428
Joined: Fri Aug 12, 2011 21:28

by dannydark » Mon Feb 06, 2012 09:22

Ah yeh sorry I didn't see your merge message when I checked earlier haha, just wasn't looking properly.
 

sapier
Member
 
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Tue Feb 07, 2012 15:54

I've moved the getCollisionBox function from ActiveObject to a separate interface class this will reduce changes necessary
DON'T mention coding style!
(c) sapier all rights reserved
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 3 guests

cron