Page 1 of 1

Possible to change the player hitbox ?

PostPosted: Fri Feb 05, 2016 00:10
by Sirvoid
I want to make a mod that need to change the hitbox of the player.

But is it possible ? :|

Re: Possible to change the player hitbox ?

PostPosted: Sat Feb 06, 2016 06:46
by Byakuren
Yes, use the set_properties method of ObjectRef to change the collisionbox property of a player.

This will change the box that people are able to click to target a player, not sure how much it affects other things though.

Re: Possible to change the player hitbox ?

PostPosted: Sat Feb 06, 2016 18:10
by stu
Byakuren wrote:Yes, use the set_properties method of ObjectRef to change the collisionbox property of a player.

This will change the box that people are able to click to target a player, not sure how much it affects other things though.

set_properties only allows you to change the player's 'selection box' but does not change the actual 'collision box' though I see how this can cause some confusion as the property is called collisionbox

Being able to set the collision box could be very useful for custom player models, for example being able to move through single node high tunnels. There has, of course, been a PR for this since May last year ;-)

https://github.com/minetest/minetest/pull/2738