Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reworked new X-O-Meter model #77

Merged
merged 4 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Objects/Mesh/MeshNew/obj_interactive_speedmeter.fbx
Binary file not shown.
Binary file modified Objects/Textures/TexturesNew/obj_interactive_speedmeter_asg.tga
Binary file not shown.
Binary file not shown.
Binary file modified Objects/Textures/TexturesNew/obj_interactive_speedmeter_nor.tga
Binary file not shown.
13 changes: 6 additions & 7 deletions Scripts/interactable/Orientation/XOMeter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -400,22 +400,21 @@ function XOMeter.client_onFixedUpdate(self, dt)


elseif mode.savevalue == 7 then -- velocity
one = ((sInteractable.power / 4 + 152) / 310) % 1.0
one = ((sInteractable.power / 4 + 67) / 134) % 1.0
elseif mode.savevalue == 8 then --rpm
one = ((sInteractable.power + 152) / 310) % 1.0
one = ((sInteractable.power + 67) / 134) % 1.0
elseif mode.savevalue == 10 then --mass
one = ((sInteractable.power / 10 + 102) / 310) % 1.0
one = ((sInteractable.power / 10 + 7) / 134) % 1.0
elseif mode.savevalue == 11 then -- orient
local value = 0.5 - sInteractable.power / 360

local value = 0.5+sInteractable.power/360

if self.shape:getZAxis().z < 0 then
value = 0.5+sInteractable.power/360
value = 0.5 + sInteractable.power / 360
end

one = value % 1.0
else
one = ((sInteractable.power + 102) / 310) % 1.0 -- garbage
one = ((sInteractable.power + 17) / 134) % 1.0 -- garbage
end

self.interactable:setAnimProgress("arrow_anim", one)
Expand Down