mirror of
https://github.com/APercy/automobiles_pck
synced 2025-06-16 13:58:01 +02:00
fix roadster windshield
This commit is contained in:
parent
dffa069f4b
commit
f21ccec8d6
Binary file not shown.
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user