Collision boxes for attached entities

User avatar
MirceaKitsune
Member
 
Posts: 809
Joined: Sat May 21, 2011 22:31
GitHub: MirceaKitsune
IRC: Taoki
In-game: MirceaKitsune

Collision boxes for attached entities

by MirceaKitsune » Sun Jun 28, 2015 18:04

https://github.com/minetest/minetest/issues/2851

I recently noticed that, if an entity is attached to another entity or a player, it no longer has a collision box, even if self.collisionbox is present. Would it be possible to make collision boxes work for attachments please, so that they can be punched or right-clicked?

Example from my mod, Creatures: I recently added 3D items, which allow the wielded item to show in the right hand as well as other inventory items to be worn on the body (such as on the belt). Obviously it relies on an attached Lua entity for each item. I was going to add support for pickpocketing, which would let players steal items from the mob's hand or belt by right-clicking them. After I noticed this limitation I had to drop the idea, because there's no way to select an attached entity by looking at it.
 

ABJ
Member
 
Posts: 2344
Joined: Sun Jan 18, 2015 13:02
GitHub: ABJ-MV
In-game: ABJ

Re: Collision boxes for attached entities

by ABJ » Wed Jul 01, 2015 18:48

+1k
This is a good idea
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 7 guests

cron