Fe Hat | Orbit Script

-- Compute orbit position relative to head local x = math.cos(angle) * radius local z = math.sin(angle) * radius local y = heightOffset -- flat orbit, but could be elliptical

-- Reconnect when character respawns player.CharacterAdded:Connect(function(newChar) character = newChar head = character:WaitForChild("Head") lastUpdate = os.clock() end) a. Elliptical Orbits Use different radii for X and Z axes: FE Hat Orbit Script

-- ModuleScript: HatOrbitController local HatOrbitController = {} function HatOrbitController.startOrbit(hatHandle, targetPart, radius, speed, heightOffset) local angle = 0 local connection -- Compute orbit position relative to head local x = math

angle = angle + speed * dt if angle > math.pi * 2 then angle = angle - math.pi * 2 end FE Hat Orbit Script

-- Apply new CFrame to hat handle hat.Handle.CFrame = newCFrame end

One thought on “[教學] Android Studio 開發環境安裝教學 (Linux版)

  1. FE Hat Orbit ScriptTim

    感謝您的分享,我目前使用Ubuntu 20 LTS
    安裝Android Studio後聘沒有出現一個桌面圖示
    請問要如何產生一個桌面圖示以利下次使用

    Reply

發表迴響