Attachment
Attachment : Instance
Overview
Attachment๋ ํน์ ์์น์ ๋ฐฉํฅ์ ์ ์ํ๋ ์ธ์คํด์ค๋ก, ์ฃผ๋ก BasePart, Bone, ๋๋ ๋ค๋ฅธ Attachment์ ์ข ์๋ฉ๋๋ค.
์๋์ ์ธ ์์น์ ํ์ ์ CFrame ์์ฑ์ ํตํด ์ค์ ๋๋ฉฐ, ํ์์ ๋ฐ๋ผ WorldCFrame์ ์ฌ์ฉํด ์ ๋ ์ขํ ๊ธฐ์ค์ผ๋ก ์กฐ์ ํ ์๋ ์์ต๋๋ค.
์ด ์ธ์คํด์ค๋ ๋ค์ํ ๊ธฐ๋ฅ๊ณผ ์ฐ๋๋์ด ๋จ์ํ ์์น ์ง์ ์ด์์ ์ญํ ์ ์ํํฉ๋๋ค. ์๋ฅผ ๋ค์ด, Beam์ ๋ ๊ฐ์ Attachment ์ฌ์ด๋ฅผ ์ฐ๊ฒฐํ์ฌ ์๊ฐ์ ํจ๊ณผ๋ฅผ ๊ตฌํํ๋ฉฐ, ๋ฌผ๋ฆฌ ๊ด๋ จ ์ธ์คํด์ค๋ค๋ Attachment๊ฐ ์์นํ ์ง์ ์ ๊ธฐ์ค์ผ๋ก ๋์ํ๊ฒ ํ ์ ์์ด ๋ณด๋ค ์ ๋ฐํ ์ ์ด๊ฐ ๊ฐ๋ฅํฉ๋๋ค.
BasePart๋ง์ผ๋ก๋ ์ด๋ ค์ด ์ธ๋ถ ์์น ์กฐ์ ์ด๋ ์ํธ์์ฉ ์ง์ ์ Attachment๋ฅผ ํตํด ์์ฝ๊ฒ ๊ตฌ์ฑํ ์ ์์ด, ๋ค์ํ ํจ๊ณผ๋ ๋์์ ์ค์ฌ์ ์ ์ ์ฐํ๊ฒ ์ค์ ํ ์ ์์ต๋๋ค.
Properties
CFrame
CFrame
๋ถ๋ชจ ๊ฐ์ฒด๋ฅผ ๊ธฐ์ค์ผ๋ก ํ ์๋์ ์ธ ์์น์ ๋ฐฉํฅ์ ์คํ์ ์ ๋ํ๋ด๋ ์์ฑ์ ๋๋ค.
Code Samples
local Attachment = script.Parent
print(Attachment.CFrame)
WorldCFrame
CFrame
๊ฒ์ ์๋๋ฅผ ๊ธฐ์ค์ผ๋ก ํ ์ ๋์ ์ธ ์์น์ ๋ฐฉํฅ์ ๋ํ๋ด๋ ์์ฑ์ ๋๋ค.
๋ถ๋ชจ ๊ฐ์ฒด์ ์์น ๋ฐ ํ์ ์ Attachment์ ๊ณ ์ ์คํ์ ์ด ์ ์ฉ๋ ๊ฒฐ๊ณผ๋ก ๊ณ์ฐ๋ฉ๋๋ค.
Code Samples
local Attachment = script.Parent
print(Attachment.WorldCFrame)
Axis
Vector3
Attachment์ X์ถ ๋ฐฉํฅ์ ๋ํ๋ด๋ ์์ฑ์ ๋๋ค.
Code Samples
local Attachment = script.Parent
print(Attachment.Axis)
SecondaryAxis
Vector3
Attachment์ Y์ถ ๋ฐฉํฅ์ ๋ํ๋ด๋ ์์ฑ์ ๋๋ค.
Code Samples
local Attachment = script.Parent
print(Attachment.SecondaryAxis)
WorldAxis
Vector3
๊ฒ์ ์๋ ์ขํ๊ณ๋ฅผ ๊ธฐ์ค์ผ๋ก ๊ณ์ฐ๋ Attachment์ X์ถ ๋ฐฉํฅ์ ๋ํ๋ด๋ ์์ฑ์ ๋๋ค.
Code Samples
local Attachment = script.Parent
print(Attachment.WorldAxis)
WorldSecondaryAxis
Vector3
๊ฒ์ ์๋ ์ขํ๊ณ๋ฅผ ๊ธฐ์ค์ผ๋ก ๊ณ์ฐ๋ Attachment์ Y์ถ ๋ฐฉํฅ์ ๋ํ๋ด๋ ์์ฑ์ ๋๋ค.
Code Samples
local Attachment = script.Parent
print(Attachment.WorldSecondaryAxis)
Methods
GetConstraints
ํ์ฌ ์ง์๋์ง ์์ต๋๋ค.
Parameters
Return
array
Code Samples
Events
Last updated