fix roadster windshield

This commit is contained in:
Alexsandro Percy 2022-12-11 17:58:30 -03:00
parent dffa069f4b
commit f21ccec8d6
2 changed files with 2 additions and 2 deletions

View File

@ -435,11 +435,11 @@ minetest.register_entity("automobiles_roadster:roadster", {
local stop = nil
if self._show_rag == true then
self.object:set_bone_position("windshield", {x=0, y=15.8317, z=15.0394}, {x=0, y=0, z=0})
self.object:set_bone_position("windshield", {x=0, z=15.8317, y=15.0394}, {x=145, y=0, z=0})
self.top2:set_properties({is_visible=true})
self.top1:set_properties({is_visible=false})
else
self.object:set_bone_position("windshield", {x=0, y=15.8317, z=15.0394}, {x=math.rad(-145), y=0, z=0})
self.object:set_bone_position("windshield", {x=0, z=15.8317, y=15.0394}, {x=0, y=0, z=0})
self.top2:set_properties({is_visible=false})
self.top1:set_properties({is_visible=true})
end