
--
-- entity
--

supercub.vector_up = vector.new(0, 1, 0)

minetest.register_entity('hidroplane:floaters',{
initial_properties = {
	physical = false,
	collide_with_objects=false,
	pointable=false,
	visual = "mesh",
    backface_culling = false,
	mesh = "supercub_floaters.b3d",
	textures = {
        "supercub_painting.png", -- pintura
        "airutils_black.png", --pneus dianteiro
        "airutils_metal.png", --rodas dianteiros
        "airutils_metal.png", --hastes
        "airutils_metal.png", --sup rodas
        "airutils_black.png", --fendas
        "airutils_metal.png", --pneus traseiros
        "airutils_black.png", --rodas traseiras
        },
	},
	
    on_activate = function(self,std)
	    self.sdata = minetest.deserialize(std) or {}
        self.object:set_armor_groups({immortal=1})
	    if self.sdata.remove then self.object:remove() end
    end,
	    
    get_staticdata=function(self)
      self.sdata.remove=true
      return minetest.serialize(self.sdata)
    end,
	
})

minetest.register_entity('hidroplane:hidro',
    airutils.properties_copy(hydroplane.plane_properties)
)

