CameraClient

CameraClient

ํด๋ผ์ด์–ธํŠธ์—์„œ ์‚ฌ์šฉ๋˜๋Š” ์นด๋ฉ”๋ผ ๊ฐœ์ฒด์—์š”.

์†์„ฑ

Track

Track ๊ด€๋ จ ๊ฐ์ฒด๋ฅผ ์–ป์„์ˆ˜ ์žˆ์–ด์š”. LINK : Track

-- ์ƒ˜ํ”Œ --

cube.Track:AddLocalMove("Move", movePos, moveSpeed, false) --์ด๋™ ํŠธ๋ž™์„ ๋“ฑ๋กํ•ด์š”. (์ด๋™ ํŠธ๋ž™์€ ์—ฌ๋Ÿฌ๊ฐœ๋„ ๋“ฑ๋กํ•  ์ˆ˜ ์žˆ์–ด์š”.)
cube.Track:PlayTransformTrack("Move", Enum.TransformPlayType.Repeat, InfinityPlay)

FieldOfView

FieldOfView๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ์–ด์š”.

-- ์ƒ˜ํ”Œ --

local camera = LocalPlayer:GetCurrentCamera()
camera.FieldOfView = 50

bCollisionWithCam

(deprecated) ์นด๋ฉ”๋ผ CollisionTest๋ฅผ ์ผค ์ˆ˜ ์žˆ์–ด์š”.

CollisionWithCam

์นด๋ฉ”๋ผ CollisionTest๋ฅผ ์ผค ์ˆ˜ ์žˆ์–ด์š”.

-- ์ƒ˜ํ”Œ --

local camera = LocalPlayer:GetCurrentCamera()
camera.CollisionWithCam = true

bEnableCameraLag

(deprecated)์นด๋ฉ”๋ผ ์ง€์—ฐ ํšจ๊ณผ๋ฅผ ์ผค ์ˆ˜ ์žˆ์–ด์š”.

EnableCameraLag

์นด๋ฉ”๋ผ ์ง€์—ฐ ํšจ๊ณผ๋ฅผ ์ผค ์ˆ˜ ์žˆ์–ด์š”.

-- ์ƒ˜ํ”Œ --

local camera = LocalPlayer:GetCurrentCamera()
camera.EnableCameraLag = true
camera.CameraLagSpeed = 5

CameraLagSpeed

์นด๋ฉ”๋ผ ์ง€์—ฐ ์†๋„๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ์–ด์š”.

-- ์ƒ˜ํ”Œ --

local camera = LocalPlayer:GetCurrentCamera()
camera.bEnableCameraLag = true
camera.CameraLagSpeed = 5

SocketOffset

์นด๋ฉ”๋ผ ์œ„์น˜ Offset์„ ์–ป์„ ์ˆ˜ ์žˆ์–ด์š”.

-- ์ƒ˜ํ”Œ --

local camera = LocalPlayer:GetCurrentCamera()
camera.SocketOffset = Vector.new(0, 0, 90)

Zoom

Zoom ๊ฐ’์„ ์–ป์„ ์ˆ˜ ์žˆ์–ด์š”. Zoom ๊ฐ’ ๋ณ€๊ฒฝ์‹œ ์นด๋ฉ”๋ผ์˜ ์คŒ ์ตœ์†Œ &์ตœ๋Œ€๊ฐ’์„ ๋ฌด์‹œํ•ด์š”.

-- ์ƒ˜ํ”Œ --

local camera = LocalPlayer:GetCurrentCamera()
camera.Zoom = 30

ZoomMin

Zoom์˜ ์ตœ์†Œ ๊ฐ’์„ ์–ป์„ ์ˆ˜ ์žˆ์–ด์š”.

-- ์ƒ˜ํ”Œ --

local camera = LocalPlayer:GetCurrentCamera()
camera.ZoomMin = 20

ZoomMax

Zoom์˜ ์ตœ๋Œ€ ๊ฐ’์„ ์–ป์„ ์ˆ˜ ์žˆ์–ด์š”.

-- ์ƒ˜ํ”Œ --

local camera = LocalPlayer:GetCurrentCamera()
camera.ZoomMax = 40

bInheritPitch

(deprecated) DesiredRot ์—ฐ์‚ฐ ์‹œ Inherit Pitch ์‚ฌ์šฉ ์—ฌ๋ถ€

InheritPitch

DesiredRot ์—ฐ์‚ฐ ์‹œ Inherit Pitch ์‚ฌ์šฉ ์—ฌ๋ถ€

bInheritYaw

(deprecated) DesiredRot ์—ฐ์‚ฐ ์‹œ Inherit Yaw ์‚ฌ์šฉ ์—ฌ๋ถ€

InheritYaw

DesiredRot ์—ฐ์‚ฐ ์‹œ Inherit Yaw ์‚ฌ์šฉ ์—ฌ๋ถ€

bInheritRoll

(deprecated) DesiredRot ์—ฐ์‚ฐ ์‹œ Inherit Roll ์‚ฌ์šฉ ์—ฌ๋ถ€

InheritRoll

DesiredRot ์—ฐ์‚ฐ ์‹œ Inherit Roll ์‚ฌ์šฉ ์—ฌ๋ถ€

bUsePreviousRotWhenNotUsingInheritRot

(deprecated) DesiredRot ์—ฐ์‚ฐ ์‹œ Inherit Rotation์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š์„ ๊ฒฝ์šฐ Previous Rotation / RelativeRotation์„ ์‚ฌ์šฉํ•  ์ง€ ์—ฌ๋ถ€

UsePreviousRotWhenNotUsingInheritRot

DesiredRot ์—ฐ์‚ฐ ์‹œ Inherit Rotation์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š์„ ๊ฒฝ์šฐ Previous Rotation / RelativeRotation์„ ์‚ฌ์šฉํ•  ์ง€ ์—ฌ๋ถ€

ํ•จ์ˆ˜

void SetLookAtTarget(Object TargetObject)

๋Œ€์ƒ ์˜ค๋ธŒ์ ํŠธ๋ฅผ ํƒ€๊ฒŸ์œผ๋กœ ์„ค์ •ํ•ด์„œ ๋ฐ”๋ผ๋ด์š”. (ํƒ€๊ฒŸ์œผ๋กœ ์„ค์ •ํ•  ์˜ค๋ธŒ์ ํŠธ)

-- ์ƒ˜ํ”Œ --

local camera = LocalPlayer:GetCurrentCamera()
camera:SetLookAtTarget(Workspace.SpawnPoint) --์นด๋ฉ”๋ผ๊ฐ€ ๋Œ€์ƒ ์˜ค๋ธŒ์ ํŠธ๋ฅผ ๋ฐ”๋ผ๋ณด๊ฒŒ ํ•ด์š”. (nil์ด๋ฉด ๋ฐ”๋ผ๋ณด์ง€ ์•Š์•„์š”.)

void ZoomInOut(number Value)

์นด๋ฉ”๋ผ์˜ ์คŒ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์–ด์š”. (์„ค์ •ํ•  ์นด๋ฉ”๋ผ ์คŒ ํฌ๊ธฐ ๊ฐ’) Zoom ๊ฐ’ ๋ณ€๊ฒฝ์‹œ ์นด๋ฉ”๋ผ์˜ ์คŒ ์ตœ์†Œ &์ตœ๋Œ€๊ฐ’์„ ๋„˜์„ ์ˆ˜ ์—†์–ด์š”.

-- ์ƒ˜ํ”Œ --

local camera = LocalPlayer:GetCurrentCamera()
camera:ZoomInOut(0.5) --์นด๋ฉ”๋ผ์˜ ํ™•๋Œ€์ถ•์†Œ๊ฐ’์„ ์กฐ์ ˆํ•ด์š”.

์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋ถ€๋ชจ ์˜ค๋ธŒ์ ํŠธ ๊ธฐ๋Šฅ๋“ค

์†์„ฑ

์ด๋ฆ„

์„ค๋ช…

๊ฐ์ฒด ํ™œ์„ฑํ™” ์—ฌ๋ถ€

๊ฐ์ฒด์˜ Matrix

๊ฐ์ฒด์˜ Local Transform

๊ฐ์ฒด์˜ ์œ„์น˜ Vector

๊ฐ์ฒด์˜ ๋กœ์ปฌ์ขŒํ‘œ Vector

๊ฐ์ฒด์˜ ํšŒ์ „ Vector

๊ฐ์ฒด์˜ ๋กœ์ปฌ ํšŒ์ „ Vector

๊ฐ์ฒด์˜ ํฌ๊ธฐ Vector

๊ฐ์ฒด์˜ ๊ฐ€์‹œ์„ฑ

์ด๋ฒคํŠธ

์ด๋ฆ„

์„ค๋ช…

์ƒ์„ฑ ํ›„ ๋งค ํ”„๋ ˆ์ž„๋งˆ๋‹ค ํ˜ธ์ถœ๋˜๋Š” ์ด๋ฒคํŠธ์—์š”. ์—ฐ๊ฒฐํ•จ์ˆ˜ ํ˜•์‹์€ function(updateTime), updateTime ์€ number ์ž…๋‹ˆ๋‹ค.

์‚ญ์ œ๋  ๋•Œ ํ˜ธ์ถœ๋˜๋Š” ์ด๋ฒคํŠธ์—์š”. ์—ฐ๊ฒฐํ•จ์ˆ˜ ํ˜•์‹์€ function() ์ž…๋‹ˆ๋‹ค.

Enable ๋ ๋•Œ ํ˜ธ์ถœ๋˜๋Š” ์ด๋ฒคํŠธ์—์š”. ์—ฐ๊ฒฐํ•จ์ˆ˜ ํ˜•์‹์€ function() ์ž…๋‹ˆ๋‹ค.

Disable ๋ ๋•Œ ํ˜ธ์ถœ๋˜๋Š” ์ด๋ฒคํŠธ์—์š”. ์—ฐ๊ฒฐํ•จ์ˆ˜ ํ˜•์‹์€ function() ์ž…๋‹ˆ๋‹ค.

ํ•จ์ˆ˜

์ด๋ฆ„

์„ค๋ช…

๊ฐ์ฒด์˜ ํ‚ค ๊ฐ’์„ ์–ป์„ ์ˆ˜ ์žˆ์–ด์š”.

ํ˜„์žฌ ๋งคํŠธ๋ฆญ์Šค์—์„œ ์„ค์ • ๋œ ๋งคํŠธ๋ฆญ์Šค๋กœ ๋ณด๊ฐ„์ด ๋˜๋Š” ๋งคํŠธ๋ฆญ์Šค๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์–ด์š” ์„ค์ •ํ•  ์ˆ˜ ์žˆ์–ด์š”. (Matrix ๊ฐ’, bool ์ถฉ๋Œ ์ฒ˜๋ฆฌ ์—ฌ๋ถ€)

ํ˜„์žฌ ๋งคํŠธ๋ฆญ์Šค์—์„œ ์„ค์ • ๋œ ๋งคํŠธ๋ฆญ์Šค๋กœ ๋ณด๊ฐ„์ด ๋˜๋Š” ๋งคํŠธ๋ฆญ์Šค๋ฅผ ๋กœ์ปฌ์ขŒํ‘œ๊ธฐ์ค€์œผ๋กœ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์–ด์š” ์„ค์ •ํ•  ์ˆ˜ ์žˆ์–ด์š”. (Matrix ๊ฐ’, bool ์ถฉ๋Œ ์ฒ˜๋ฆฌ ์—ฌ๋ถ€)

์ˆœ๊ฐ„์ด๋™ ํ•˜๋Š” ๋งคํŠธ๋ฆญ์Šค๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์–ด์š”. (Matrix ๊ฐ’)

๊ฐ์ฒด์˜ ์œ„์น˜๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์–ด์š”. (์„ค์ •ํ•  ์œ„์น˜ Vector ๊ฐ’, ์ถฉ๋Œ ์ฒ˜๋ฆฌ ์—ฌ๋ถ€)

๊ฐ์ฒด์˜ tag๋ฅผ ์„ค์ •ํ•ด์š”. (์„ค์ •ํ•  tag)

๊ฐ์ฒด์— ์„ค์ •๋œ tag๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ์–ด์š”.

์œ ์ €๊ฐ€ ์ถ”๊ฐ€ํ•œ ์˜ค๋ธŒ์ ํŠธ ์ปค์Šคํ…€ ์ด๋ฒคํŠธ์— ํ•จ์ˆ˜๋ฅผ ์—ฐ๊ฒฐํ•  ์ˆ˜ ์žˆ์–ด์š”. (์ด๋ฒคํŠธ ์ด๋ฆ„, ์—ฐ๊ฒฐ ํ•จ์ˆ˜)

์˜ค๋ธŒ์ ํŠธ๊ฐ€ ํ•ด๋‹นํ•˜๋Š” ์œ„์น˜๋ฅผ ๋ฐ”๋ผ๋ณด๊ฒŒ ํ•  ์ˆ˜ ์žˆ์–ด์š”. (๋ฐ”๋ผ๋ณผ ์œ„์น˜ Vector)

Last updated