mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 06:41:55 +00:00
native changes for MovingObjects and TractionRopes
This commit is contained in:
@@ -271,6 +271,7 @@ function MovingObjects:RotateRelayCogs3()
|
||||
self.Controller_End:Play()
|
||||
end
|
||||
|
||||
@native
|
||||
function MovingObjects:RotateRotodials(Elevator_Y_Velocity)
|
||||
local rad = math.rad(Elevator_Y_Velocity/MovingObjects.RotateRotodialsSensitivity)
|
||||
for n: number = 1, #self.Rotodials do
|
||||
@@ -278,6 +279,7 @@ function MovingObjects:RotateRotodials(Elevator_Y_Velocity)
|
||||
end
|
||||
end
|
||||
|
||||
@native
|
||||
function MovingObjects:RotatePulleyWheel(TravelingUpwards, Elevator_Y_Velocity)
|
||||
self.PulleyWheel.CFrame*=CFrame.Angles(math.rad((TravelingUpwards and -Elevator_Y_Velocity or Elevator_Y_Velocity)/MovingObjects.PulleyWheelRotationSensitivity),0,0)
|
||||
end
|
||||
|
||||
@@ -45,6 +45,7 @@ function TractionRopes.constructor(CabRopesObject, PulleyRopesObject)
|
||||
}, TractionRopes)
|
||||
end
|
||||
|
||||
@native
|
||||
function TractionRopes:Update()
|
||||
local StudLength = (self.PulleyRopesObject.Position-self.CabRopesObject.Position).Magnitude+1
|
||||
for n: number = 1, #self.PulleyCables do
|
||||
|
||||
Reference in New Issue
Block a user