Motor Sınıfı
Camera
*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.
Özet
Özellikler
ViewportSize:ScreenSafeInsetsModel |
Yöntemler
GetLargestCutoffDistance(ignoreList: Instances):number |
GetPartsObscuringTarget(castPoints: {any},ignoreList: Instances):Instances |
Interpolate(endPos: CFrame,endFocus: CFrame,duration: number):() |
ScreenPointToRay(x: number,y: number,depth: number):Ray |
SetCameraPanMode(mode: Enum.CameraPanMode):() |
ViewportPointToRay(x: number,y: number,depth: number):Ray |
WorldToScreenPoint(worldPoint: Vector3):Tuple |
WorldToViewportPoint(worldPoint: Vector3):Tuple |
ZoomToExtents(boundingBoxCFrame: CFrame,boundingBoxSize: Vector3):() |
Olaylar
Devralınan Üyeler
PVInstance kaynağından 4 tane devralındı
Instance kaynağından 58 tane devralındı
Object kaynağından 6 tane devralındı
API Referansı
Özellikler
CameraSubject
Kod Örnekleri
Kamera Konusu
local Players = game:GetService("Players")
local localPlayer = Players.LocalPlayer
local camera = workspace.CurrentCamera
local function resetCameraSubject()
if camera and localPlayer.Character then
local humanoid = localPlayer.Character:FindFirstChildWhichIsA("Humanoid")
if humanoid then
camera.CameraSubject = humanoid
end
end
endCoordinateFrame
focus
ViewportSize
Camera.ViewportSize:ScreenSafeInsetsModel
Yöntemler
GetLargestCutoffDistance
GetPanSpeed
GetPartsObscuringTarget
GetRoll
GetTiltSpeed
Interpolate
PanUnits
ScreenPointToRay
SetCameraPanMode
SetRoll
TiltUnits
ViewportPointToRay
WorldToScreenPoint
WorldToViewportPoint
ZoomToExtents
Dönüşler
()
Kod Örnekleri
Kapsama Alanına Yakınlaştır
local camera = workspace.CurrentCamera
local model = workspace:FindFirstChild("MyModel")
if model then
local modelCFrame = model:GetModelCFrame()
local extentsSize = model:GetExtentsSize()
camera:ZoomToExtents(modelCFrame, extentsSize)
endOlaylar
InterpolationFinished