|
@@ -0,0 +1,339 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="ko">
|
|
|
+ <head>
|
|
|
+ <meta charset="utf-8" />
|
|
|
+ <base href="../../../" />
|
|
|
+ <script src="page.js"></script>
|
|
|
+ <link type="text/css" rel="stylesheet" href="page.css" />
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <h1>[name]</h1>
|
|
|
+
|
|
|
+ <p class="desc">
|
|
|
+ AnimationActions๋ [page:AnimationClip AnimationClips]์ ์ ์ฅ๋ ์ ๋๋ฉ์ด์
์ ์์ฝํ๋ ๋ฐ ์ฌ์ฉ๋ฉ๋๋ค.
|
|
|
+ <br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : ๋๋ถ๋ถ์ ์ ๋๋ฉ์ด์
์ก์
๋ฉ์๋๋ค์ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐ๋์ด ์์ต๋๋ค.<br /><br />
|
|
|
+
|
|
|
+ three.js ์ ๋๋ฉ์ด์
์์คํ
์๋ฆฌ๋จผํธ์ ๋ํ ๊ฐ์๋ค์ ๋งค๋ด์ผ์ "Next Steps" ์น์
์ ์๋ "์ ๋๋ฉ์ด์
์์คํ
" ๊ธ์ ์ฐธ์กฐํ์ธ์.
|
|
|
+ </p>
|
|
|
+
|
|
|
+
|
|
|
+ <h2>์์ฑ์</h2>
|
|
|
+
|
|
|
+
|
|
|
+ <h3>[name]( [param:AnimationMixer mixer], [param:AnimationClip clip], [param:Object3D localRoot] )</h3>
|
|
|
+ <p>
|
|
|
+ [page:AnimationMixer mixer] - ์ ๋๋ฉ์ด์
๋ฏน์๋ ์ ๋๋ฉ์ด์
์ก์
์ ์ํด ์ ์ด๋ฉ๋๋ค.<br />
|
|
|
+ [page:AnimationClip clip] - ์ ๋๋ฉ์ด์
ํด๋ฆฝ์ ์ ๋๋ฉ์ด์
์ก์
์ ๋ํ ์ ๋๋ฉ์ด์
๋ฐ์ดํฐ๋ฅผ ๋ณด์ ํ๊ณ ์์ต๋๋ค.<br />
|
|
|
+ [page:Object3D localRoot] - ๋ฃจํธ ์ค๋ธ์ ํธ๋ ์ ๋๋ฉ์ด์
์ก์
์ ์ํํฉ๋๋ค.<br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : ํด๋น ์์ฑ์๋ฅผ ์ง์ ํธ์ถํ๋ ๋์ [page:AnimationMixer.clipAction] ์ผ๋ก AnimationAction์ ์ธ์คํด์คํ ํด์ผํฉ๋๋ค. ํด๋น ๋ฉ์๋๋ ๋ ๋์ ์ฑ๋ฅ์ ์ํ ์บ์ฑ์ ์ ๊ณตํ๊ธฐ ๋๋ฌธ์
๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+
|
|
|
+ <h2>์์ฑ</h2>
|
|
|
+
|
|
|
+
|
|
|
+ <h3>[property:Boolean clampWhenFinished]</h3>
|
|
|
+ <p>
|
|
|
+ *clampWhenFinished* ๊ฐ true๋ก ์ค์ ๋์์ ๊ฒฝ์ฐ ์๋์ผ๋ก ์ ๋๋ฉ์ด์
์ ๋ง์ง๋ง ํ๋ ์์์ [page:.paused paused] ๋ฉ๋๋ค.
|
|
|
+ <br /><br />
|
|
|
+
|
|
|
+ *clampWhenFinished* ๊ฐ false๋ก ์ค์ ๋์์ ๊ฒฝ์ฐ ๋ง์ง๋ง ๋ฃจํ์ ์์
์ด ์๋ฃ ๋ ๋ [page:.enabled enabled]์ ์๋์ผ๋ก false๋ก ์ ํ๋์ด, ๋์ด์ ์์
์ ์ํฅ์ ์ฃผ์ง ์์ต๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ์ด๊ธฐ๊ฐ์ *false* ์
๋๋ค.<br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : *clampWhenFinished* ๋ ์์
์ด ์ค๋จ๋ ๊ฒฝ์ฐ ์๋ฌด๋ฐ ์ํฅ์ ์ฃผ์ง ์์ต๋๋ค (๋ง์ง๋ง ๋ฃจํ๋ฅผ ์ค์ ๋ก ์๋ฃ๋ ๊ฒฝ์ฐ์๋ง ํจ๊ณผ๊ฐ ์์).
|
|
|
+
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[property:Boolean enabled]</h3>
|
|
|
+ <p>
|
|
|
+ *enabled* ๋ฅผ *false* ๋ก ์ค์ ํ๋ฉด ์์
์ด ๋นํ์ฑํ ๋์ด ์๋ฌด๋ฐ ์ํฅ์ ์ฃผ์ง ์์ต๋๋ค. ๊ธฐ๋ณธ๊ฐ์ *true* ์
๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์ด ๋ค์ ํ์ฑํ๋๋ฉด, ํ์ฌ [page:.time time] ๋ถํฐ ์ฐ์์ ์ผ๋ก ์ ๋๋ฉ์ด์
์ด ํ์ฑํ ๋ฉ๋๋ค (*enabled* ๋ฅผ *false* ๋ก ์ค์ ํ๋ฉด ์ ๋๋ฉ์ด์
์ก์
์ด ์ด๊ธฐํ ๋์ง ์์ต๋๋ค).<br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : *enabled* ๋ฅผ *true* ๋ก ์ค์ ํด๋ ์๋์ ์ผ๋ก ์ ๋๋ฉ์ด์
์ด ์ฌ์์ํ์ง ์์ต๋๋ค. *enabled* ๋ฅผ *true* ๋ก ์ค์ ํ๋ฉด ๋ค์ ์กฐ๊ฑด์ด ์ถฉ์กฑ๋๋ ๊ฒฝ์ฐ์๋ง ์ฆ์ ์ ๋๋ฉ์ด์
์ ์์ํฉ๋๋ค:
|
|
|
+ [page:.paused paused] ๊ฐ *false* ์ธ ๊ฒฝ์ฐ, - ๊ทธ๋์ ์ ๋๋ฉ์ด์
์ก์
์ ๋นํ์ฑํ ๋์ง ์์ต๋๋ค
|
|
|
+ ( [page:.stop stop] ๋๋ [page:.reset reset] ๋ช
๋ น์ ์คํํ์ฌ) ๊ทธ๋ฆฌ๊ณ [page:.weight weight], [page:.timeScale timeScale] ๋ ๋ ๋ค 0 ์ด ์๋๋๋ค.
|
|
|
+
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[property:Number loop]</h3>
|
|
|
+ <p>
|
|
|
+ ๋ฐ๋ณต ๋ชจ๋ ([page:.setLoop setLoop] ์ผ๋ก ๋ณ๊ฒฝํ ์ ์์ต๋๋ค). ๊ธฐ๋ณธ๊ฐ์ [page:Animation THREE.LoopRepeat] ([page:.repetitions repetitions] ๋ ๋ฌดํํ ์๋ฅผ ํฌํจ)
|
|
|
+ <br /><br />
|
|
|
+
|
|
|
+ ๋ค์์ ์์๊ฐ ์ค ํ๋์ฌ์ผ ํจ:<br /><br />
|
|
|
+ [page:Animation THREE.LoopOnce] - ํด๋ฆฝ ํ๋ฒ ์ฌ์ <br />
|
|
|
+ [page:Animation THREE.LoopRepeat] - ํด๋ฆฝ์ ๋์์ ์์ ๋ถ๋ถ์ผ๋ก ์ฆ์ ์ด๋ํ ๋๋ง๋ค ์ ํํ *repetitions* ์ ๋งํผ ํด๋ฆฝ ์ฌ์ <br />
|
|
|
+ [page:Animation THREE.LoopPingPong] - ์ ํํ *repetitions* ์ ๋งํผ ํด๋ฆฝ์ ์๋ค๋ก ์ฌ์
|
|
|
+ </p>
|
|
|
+
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์์ ์ํ๋ [page:AnimationClip] ์ ๋ฐ๋ณต ํ์์
๋๋ค.
|
|
|
+ [page:.setLoop setLoop]์ ํตํด ์ค์ ํ ์ ์์ต๋๋ค. ๊ธฐ๋ณธ๊ฐ์ *๋ฌดํ๋* ์
๋๋ค. <br /><br />
|
|
|
+ [page:. loop loop mode] ๊ฐ [page:animation THREE.LoopOnce] ๋ก ์ค์ ๋์ด ์์ผ๋ฉด ์ซ์๋ฅผ ์ค์ ํด๋ ์๋ฌด๋ฐ ์ํฅ์ ๋ฏธ์น์ง ์์ต๋๋ค.
|
|
|
+
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[property:Number time]</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์ ๋ก์ปฌ ์๊ฐ ์์ฑ (์ด ๋จ์, 0๋ถํฐ ์์).<br /><br />
|
|
|
+
|
|
|
+ ์๊ฐ ์์ฑ์ ๊ฐ์ด ๊ณ ์ ๋๊ฑฐ๋, ๋ฐ๋ณต ์ํ์ ๋ฐ๋ผ 0 ... clip.duration ์ผ๋ก ๋ํ ๋ฉ๋๋ค.
|
|
|
+ [page:.timeScale timeScale] ์ ๋ณ๊ฒฝํ์ฌ ๊ธ๋ก๋ฒ ๋ฏน์ ํ์์ ์๋์ ์ผ๋ก ํ์ฅํ ์ ์์ต๋๋ค
|
|
|
+ ([page:.setEffectiveTimeScale setEffectiveTimeScale] ๋๋ [page:.setDuration setDuration] ์ ์ด์ฉํ์ฌ) <br />
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[property:Number timeScale]</h3>
|
|
|
+ <p>
|
|
|
+ [page:.time time] ์ ๋ํ ์ค์ผ์ผ ํฉํฐ ์์ฑ์
๋๋ค. ๊ฐ์ด 0 ์ผ ๊ฒฝ์ฐ ์ ๋๋ฉ์ด์
์ ์ค์ง๋ฉ๋๋ค.
|
|
|
+ ์์ ๊ฐ ์ผ ๊ฒฝ์ฐ ์ ๋๋ฉ์ด์
์ ๋ค๋ก ์ฌ์ ๋ฉ๋๋ค. ๊ธฐ๋ณธ๊ฐ์ *1* ์
๋๋ค. <br /><br />
|
|
|
+ *timeScale* ๊ณผ ๊ด๋ จ๋ ์์ฑ/๋ฉ์๋๋:
|
|
|
+ [page:.getEffectiveTimeScale getEffectiveTimeScale],
|
|
|
+ [page:.halt halt],
|
|
|
+ [page:.paused paused],
|
|
|
+ [page:.setDuration setDuration],
|
|
|
+ [page:.setEffectiveTimeScale setEffectiveTimeScale],
|
|
|
+ [page:.stopWarping stopWarping],
|
|
|
+ [page:.syncWith syncWith],
|
|
|
+ [page:.warp warp] ์
๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[property:Number weight]</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์ ์ค์๋์ ๋ํ ์์ฑ์
๋๋ค ([0,1] ๊ฐ๊ฒฉ).
|
|
|
+ ๊ฐ์ *0* (์ํฅ ์์) ๊ณผ *1* (์ต๋ ์ํฅ) ์ฌ์ด์ ๊ฐ์ ์ฌ์ฉํ ์ ์๊ณ , ์ฌ๋ฌ ์ก์
๋ค์ ํผํฉํด์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
|
|
|
+ ๊ธฐ๋ณธ๊ฐ์ *1* ์
๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ *weight* ์ ๊ด๋ จ๋ ์์ฑ/๋ฉ์๋๋:
|
|
|
+ [page:.crossFadeFrom crossFadeFrom],
|
|
|
+ [page:.crossFadeTo crossFadeTo],
|
|
|
+ [page:.enabled enabled],
|
|
|
+ [page:.fadeIn fadeIn],
|
|
|
+ [page:.fadeOut fadeOut],
|
|
|
+ [page:.getEffectiveWeight getEffectiveWeight],
|
|
|
+ [page:.setEffectiveWeight setEffectiveWeight],
|
|
|
+ [page:.stopFading stopFading] ์
๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[property:Boolean zeroSlopeAtEnd]</h3>
|
|
|
+ <p>
|
|
|
+ ์์, ๋ฃจํ ๋ฐ ์ข
๋ฃ์ ๋ํด ๋ณ๋์ ํด๋ฆฝ์์ด ๋ถ๋๋ฌ์ด ๋ณด๊ฐ์ด ๊ฐ๋ฅํฉ๋๋ค. ๊ธฐ๋ณธ๊ฐ์ *true* ์
๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[property:Boolean zeroSlopeAtStart]</h3>
|
|
|
+ <p>
|
|
|
+ ์์, ๋ฃจํ ๋ฐ ์ข
๋ฃ์ ๋ํด ๋ณ๋์ ํด๋ฆฝ์์ด ๋ถ๋๋ฌ์ด ๋ณด๊ฐ์ด ๊ฐ๋ฅํฉ๋๋ค. ๊ธฐ๋ณธ๊ฐ์ *true* ์
๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+
|
|
|
+ <h2>๋ฉ์๋</h2>
|
|
|
+
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction crossFadeFrom]( [param:AnimationAction fadeOutAction], [param:Number durationInSeconds], [param:Boolean warpBoolean] )</h3>
|
|
|
+ <p>
|
|
|
+ ํด๋น ๋ฉ์๋๋ [page:.fadeIn fade in] ์ ์ํํ๊ฒ ๋๊ณ , ์ ๋ฌ ๋ ์๊ฐ ๊ฐ๊ฒฉ ๋ด์์ ๋์์ ๋ค๋ฅธ ์์
์ ํ์ด๋ ์์์ ์ํํฉ๋๋ค.
|
|
|
+ ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐ๋ ์ ์์ต๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ๋ง์ฝ warpBoolean ์ด true ์ผ ๊ฒฝ์ฐ, ์ถ๊ฐ์ ์ผ๋ก [page.warp warping] ์ด ์ ์ฉ๋ ๊ฒ์
๋๋ค (time scales ๋งํผ ์ ์ฐจ์ ์ผ๋ก ๋ณ๊ฒฝ). <br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : *fadeIn*/*fadeOut* ์ฒ๋ผ, ํ์ด๋ฉ์ ์์/์ข
๋ฃ์ ๊ฐ์ค์น ๊ฐ์ด 1์ผ ๋ ๋์๋ฉ๋๋ค.
|
|
|
+
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction crossFadeTo]( [param:AnimationAction fadeInAction], [param:Number durationInSeconds], [param:Boolean warpBoolean] )</h3>
|
|
|
+ <p>
|
|
|
+ ํด๋น ๋ฉ์๋๋ [page:.fadeOut fade out] ์ ์ํํ๊ฒ ๋๊ณ , ์ ๋ฌ ๋ ์๊ฐ ๊ฐ๊ฒฉ ๋ด์์ ๋์์ ๋ค๋ฅธ ์์
์ ํ์ด๋ ์ธ์ ์ํํฉ๋๋ค.
|
|
|
+ ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐ๋ ์ ์์ต๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ๋ง์ฝ warpBoolean ์ด true ์ผ ๊ฒฝ์ฐ, ์ถ๊ฐ์ ์ผ๋ก [page.warp warping] ์ด ์ ์ฉ๋ ๊ฒ์
๋๋ค (time scales ๋งํผ ์ ์ฐจ์ ์ผ๋ก ๋ณ๊ฒฝ). <br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : *fadeIn*/*fadeOut* ์ฒ๋ผ, ํ์ด๋ฉ์ ์์/์ข
๋ฃ์ ๊ฐ์ค์น ๊ฐ์ด 1์ผ ๋ ๋์๋ฉ๋๋ค.
|
|
|
+
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction fadeIn]( [param:Number durationInSeconds] )</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋ฌ๋ ์๊ฐ ๊ฐ๊ฒฉ ๋ด์์ ํ์ด๋ ์ธ์ [page:.weight weight] ์ ๊ฐ์ 0 ์์ 1์ผ๋ก ์ ์ฐจ์ ์ผ๋ก ์ฆ๊ฐํฉ๋๋ค.
|
|
|
+ ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction fadeOut]( [param:Number durationInSeconds] )</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋ฌ๋ ์๊ฐ ๊ฐ๊ฒฉ ๋ด์์ ํ์ด๋ ์์์ [page:.weight weight] ์ ๊ฐ์ 1 ์์ 0์ผ๋ก ์ ์ฐจ์ ์ผ๋ก ๊ฐ์ํฉ๋๋ค.
|
|
|
+ ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:Number getEffectiveTimeScale]()</h3>
|
|
|
+ <p>
|
|
|
+ ์ค์ง์ ์ธ ํ์ ์ค์ผ์ผ์ ๋ฐํํฉ๋๋ค. (ํ์ฌ ์ํ ์ํ ๋ฐ [page:.paused paused] ์ ๊ณ ๋ คํด์ผํฉ๋๋ค).
|
|
|
+
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:number getEffectiveWeight]()</h3>
|
|
|
+ <p>
|
|
|
+ ์ค์ง์ ์ธ ๊ฐ์ค์น๋ฅผ ๋ฐํํฉ๋๋ค. (ํ์ฌ ํ์ด๋ฉ ์ํ ๋ฐ [page:.enabled enabled] ์ ๊ณ ๋ คํด์ผํฉ๋๋ค).
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationClip getClip]()</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์ ๋ํ ์ ๋๋ฉ์ด์
๋ฐ์ดํฐ๋ฅผ ๋ณด๊ดํ๋ ํด๋ฆฝ์ ๋ฐํํฉ๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationMixer getMixer]()</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์ ์ฌ์ํ ์ ๋๋ฉ์ด์
๋ฏน์๋ฅผ ๋ฐํํฉ๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:Object3D getRoot]()</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์ด ์ํ๋๋ ๋ฃจํธ ๊ฐ์ฒด๋ฅผ ๋ฐํํฉ๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction halt]( [param:Number durationInSeconds] )</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋ฌ ๋ ์๊ฐ ๊ฐ๊ฒฉ ๋ด์์ [page:.timeScale timeScale]์ ์ ์ฐจ์ ์ผ๋ก ์ ๋๋ฉ์ด์
์๋๋ฅผ 0์ผ๋ก ๊ฐ์์ํต๋๋ค(ํ์ฌ ๊ฐ์์๋ถํฐ ์์).
|
|
|
+ ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:Boolean isRunning]()</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์ด ํ์ฌ [page:.time time] ๋์์ค์ผ ๊ฒฝ์ฐ true ์ ๋ฐํํฉ๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ์ถ๊ฐ์ ์ผ๋ก ๋ฏน์์์ ํ์ฑํ๋๋ ๊ฒ ์ด์ธ์ ([page:.isScheduled isScheduled] ์ฐธ์กฐ) ๋ค์ ์กฐ๊ฑด์ ์ถฉ์กฑํด์ผ ํฉ๋๋ค:
|
|
|
+ [page:.paused paused] ๋ false ์กฐ๊ฑด์ ์ถฉ์กฑํด์ผ ํฉ๋๋ค,
|
|
|
+ [page:.enabled enabled] ๋ true ์กฐ๊ฑด์ ์ถฉ์กฑํด์ผ ํฉ๋๋ค,
|
|
|
+ [page:.timeScale timeScale] ๋ 0์ด ์๋์ฌ์ผ ํ๊ณ , ([page:.startAt start] ์ง์ฐ๋์ง ์์์ผ ํฉ๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : *isRunning* ์ด true ์ด์ฌ๋ ์ ๋๋ฉ์ด์
์ด ์ค์ ๋์ํ๋ค๋ ๊ฒ์ ์๋ฏธํ์ง๋ ์์ต๋๋ค.
|
|
|
+ [page : .weight weight] ๊ฐ 0์ด ์๋ ๊ฐ์ผ๋ก ์ถ๊ฐ๋ก ์ค์ ๋ ๊ฒฝ์ฐ์๋ง ํด๋น๋ฉ๋๋ค.
|
|
|
+
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:Boolean isScheduled]()</h3>
|
|
|
+ <p>
|
|
|
+ ๋ง์ฝ ์ ๋๋ฉ์ด์
์ก์
์ด ๋ฏน์์์ ํ์ฑํ ๋ ๊ฒฝ์ฐ true ๋ฅผ ๋ฐํํฉ๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : ํด๋น ๋ฉ์๋๋ ์ ๋๋ฉ์ด์
์ด ์ค์ ๋ก ๋์ํ๊ณ ์์์ ์๋ฏธํ์ง๋ ์์ต๋๋ค. ([page:.isRunning isRunning] ์ ๋ํ ์ถ๊ฐ์ ์ธ ๋น๊ต ์กฐ๊ฑด์ด ํ์)
|
|
|
+
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction play]()</h3>
|
|
|
+ <p>
|
|
|
+ ๋ฏน์์ ์ ๋๋ฉ์ด์
์ก์
์ ํ์ฑํํ๋๋ก ์์ฒญํฉ๋๋ค. ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : ํด๋น ๋ฉ์๋๋ฅผ ํ์ฑํ ํ ๊ฒฝ์ฐ ๋ฐ๋์ ์ ๋๋ฉ์ด์
์ด ์คํ๋๋ ๊ฒ์ ์๋ฏธํ์ง๋ ์์ต๋๋ค:
|
|
|
+ ๋ง์ฝ ์ ๋๋ฉ์ด์
์ก์
์์
์ด ์ด๋ฏธ ์๋ฃ๋์๊ฑฐ๋ (๋ง์ง๋ง ๋ฃจํ์ ๋์ ๋๋ฌํ์ฌ), ์ง์ฐ๋ ์์ ์๊ฐ์ด ์ค์ ๋ ๊ฒฝ์ฐ([page:.startAt startAt] ์ ํตํด), ๋จผ์ [page:.reset rest]์ ์ฒ์์ผ๋ก ์คํํด์ผ ํฉ๋๋ค.
|
|
|
+ ์ผ๋ถ ๋ค๋ฅธ ์ค์ ([page:.paused paused] = true, [page:.enabled enabled] = false, [page:.weight weight] = 0, [page:.timeScale timeScale] = 0) ์ผ๋ก ์ธํด ์ ๋๋ฉ์ด์
์ด ์ฌ์๋์ง ์์ ์ ์์ต๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction reset]()</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์ ์ฌ์ค์ ํฉ๋๋ค. ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ํด๋น ๋ฉ์๋๋
|
|
|
+ [page:.paused paused] ๋ฅผ false๋ก ์ค์ ํฉ๋๋ค,
|
|
|
+ [page:.enabled enabled] ๋ฅผ true๋ก ์ค์ ํฉ๋๋ค,
|
|
|
+ [page:.time time] ์ 0์ผ๋ก ์ค์ ํฉ๋๋ค,
|
|
|
+ ๋ฏธ๋ฆฌ ์์ฝ๋ ํ์ด๋ฉ ๋ฐ ์ํ์ ์ค๋จํ๊ณ ๋ด๋ถ ๋ฃจํ ์๋ฅผ ์ ๊ฑฐํ๊ณ ์์์ ์ง์ฐ์ํต๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : *.reset* ์ ํญ์ [page:.stop stop] ์ ์ํด ํธ์ถ๋ฉ๋๋ค ๊ทธ๋ฌ๋, *reset* ์ ์ค์ค๋ก *stop* ์ ํธ์ถํ์ง๋ ์์ต๋๋ค. <br/>
|
|
|
+ ๊ธฐ์ : ๋ง์ฝ ๋น์ ์ด *stop* ๊ณผ *reset* ๋๋ค ํธ์ถํ๊ธฐ๋ฅผ ์ํ๋ฉด, *reset* ์ ํธ์ถํ์ง ๋ง๊ณ *stop* ์ ํด์ผํฉ๋๋ค. <br/>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction setDuration]( [param:Number durationInSeconds] )</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์ ๋จ์ผ ๋ฃจํ์ ๊ธฐ๊ฐ์ ์ค์ ํฉ๋๋ค ([page:.timeScale timeScale] ์ ์กฐ์ ํ๊ณ , ๋ฏธ๋ฆฌ ์์ฝ๋ ์ํ์ ์ค๋จ).
|
|
|
+ ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค.
|
|
|
+
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction setEffectiveTimeScale]( [param:Number timeScale] )</h3>
|
|
|
+ <p>
|
|
|
+ [page:.timeScale timeScale] ์ ์ค์ ํ๊ณ ์์ฝ๋ ์ํ์ ์ค๋จํฉ๋๋ค. ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ๋ง์ฝ [page:.paused paused] ๊ฐ false ์ผ ๊ฒฝ์ฐ, ์ค์ง์ ์ธ ํ์ ์ค์ผ์ผ (๋ด๋ถ ์์ฑ) ๊ฐ์ ํด๋น timeScale ๊ฐ์ผ๋ก ์ค์ ๋ฉ๋๋ค;
|
|
|
+ ๊ทธ๋ ์ง ์์ผ๋ฉด, ์ค์ง์ ์ธ ํ์ ์ค์ผ์ผ (ํ์ฌ ์ ๋๋ฉ์ด์
์ ์ง์ ์ ์ผ๋ก ์ํฅ์ ๋ฏธ์น๋) ๊ฐ์ 0์ผ๋ก ์ค์ ๋ฉ๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : ํด๋น ๋ฉ์๋๋ก ์ธํด *timeScale* ์ ๊ฐ์ด 0 ์ผ๋ก ์ค์ ๋์ด๋ .*paused* ๊ฐ์ ์๋์ ์ผ๋ก *true* ๋ก ๋ณ๊ฒฝ๋์ง ์์ต๋๋ค.
|
|
|
+
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction setEffectiveWeight]( [param:Number weight] )</h3>
|
|
|
+ <p>
|
|
|
+ [page:.weight weight] ์ด ์ค์ ๋๊ณ ์์ฝ๋ ํ์ด๋ฉ์ ์ค์ง ํฉ๋๋ค. ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ๋ง์ฝ [page:..enabled enabled] ์ด true ์ผ ๊ฒฝ์ฐ, ์ค์ง์ ์ธ ๊ฐ์ค์น (๋ด๋ถ ์์ฑ* ๊ฐ์ ํด๋น weight ๊ฐ์ผ๋ก ์ค์ ๋ฉ๋๋ค;
|
|
|
+ ๊ทธ๋ ์ง ์์ผ๋ฉด, ์ค์ง์ ์ธ ๊ฐ์ค์น (ํ์ฌ ์ ๋๋ฉ์ด์
์ ์ง์ ์ ์ผ๋ก ์ํฅ์ ๋ฏธ์น๋) ๊ฐ์ 0์ผ๋ก ์ค์ ๋ฉ๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : ํด๋น ๋ฉ์๋๋ก ์ธํด *weight* ์ ๊ฐ์ด 0 ์ผ๋ก ์ค์ ๋์ด๋ .*enabled* ๊ฐ์ ์๋์ ์ผ๋ก *false*๋ก ๋ณ๊ฒฝ๋์ง ์์ต๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction setLoop]( [param:Number loopMode], [param:Number repetitions] )</h3>
|
|
|
+ <p>
|
|
|
+ [page:.loop loop mode] ๋ฐ [page:.repetitions repetitions] ์ ํ์๋ฅผ ์ค์ ํฉ๋๋ค. ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction startAt]( [param:Number startTimeInSeconds] )</h3>
|
|
|
+ <p>
|
|
|
+
|
|
|
+ ์ง์ฐ๋ ์์ ์ด๋ฒคํธ๋ฅผ ์ ์ํฉ๋๋ค (์ผ๋ฐ์ ์ผ๋ก AnimationMixer.time + deltaTimeInSeconds์์ ์ ๋ฌ๋จ). ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : .[page:.startAt startAt] ๋ฉ์๋๊ฐ [page:.play play] ๋ฉ์๋์ ํจ๊ป ์ฐ๊ฒฐ๋์ด ์๊ฑฐ๋ ์ ๋๋ฉ์ด์
์ด ๋ฏน์์์ ํ์ฑํ ๋ ๊ฒฝ์ฐ (์ค์ง ๋๋ ์ฌ์ค์ ์์ด .*play* ๋ฅผ ๋จผ์ ํธ์ถํ์ฌ) ์ ๋๋ฉ์ด์
์ ์ง์ ๋ ์๊ฐ์๋ง ์์๋ฉ๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction stop]()</h3>
|
|
|
+ <p>
|
|
|
+ ๋ฏน์์๊ฒ ์ ๋๋ฉ์ด์
์ก์
์ ๋นํ์ฑํํ๋๋ก ์ค์ ํฉ๋๋ค. ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ํด๋น ๋ฉ์๋๋ฅผ ์คํํ๋ฉด ์์
์ด ์ฆ์ ์ค๋จ๋๊ณ ์์ ํ ์ฌ์ค์ [page:.rest rest] ๋ฉ๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : [page:.AnimationMixer.stopAllAction mixer.stopAllAction] ์ ํตํด ๊ฐ์ ๋ฏน์์ ์๋ ๋ชจ๋ ํ์ฑ๋ ์์
๋ค์ ํ๋ฒ์ ์ข
๋ฃํ ์ ์์ต๋๋ค.
|
|
|
+
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction stopFading]()</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์ ์ ์ฉ๋์ด ์๋ [page:.fadeIn fading] ์ ์ข
๋ฃํฉ๋๋ค. ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction stopWarping]()</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์ ์ ์ฉ๋์ด ์๋ [page:.warp warping] ์ ์ข
๋ฃํฉ๋๋ค. ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction syncWith]( [param:AnimationAction otherAction] )</h3>
|
|
|
+ <p>
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์ ์ ๋ฌ๋ ๋ค๋ฅธ ์์
๊ณผ ํจ๊ป ๋๊ธฐํ๋ฅผ ํฉ๋๋ค. ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค. <br /><br />
|
|
|
+
|
|
|
+ ์ ๋๋ฉ์ด์
์ก์
์ ๋๊ธฐํ๋ [page:.time time] ๋ฐ [page:.timeScale timeScale] ๊ฐ์ ๋ค๋ฅธ ์์
์ ๊ฐ์ผ๋ก ๋์๋์ด ์ค์ ๋ฉ๋๋ค (์์ฝ ๋ ์ํ ์ค์ง). <br /><br />
|
|
|
+
|
|
|
+ ์ฐธ๊ณ : ๋ค๋ฅธ ์์
๋ค์ *time* ๋ฐ *timeScale* ์ ํฅํ ๋ณ๊ฒฝ ์ฌํญ์ ๊ฐ์ง๋์ง ์์ต๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:AnimationAction warp]( [param:Number startTimeScale], [param:Number endTimeScale], [param:Number durationInSeconds] )</h3>
|
|
|
+ <p>
|
|
|
+ ๋ค์ด์ค๋ ์ด๋ฒคํธ ๊ฐ๊ฒฉ์์ [page:.timeScale timeScale] ์ *startTimeScale* ์์ *endTimeScale* ๋ก ์ ์ฐจ์ ์ผ๋ก ์ฌ์ ์๋๋ฅผ ๋ณ๊ฒฝํฉ๋๋ค. ํด๋น ๋ฉ์๋๋ ์ฒด์ธ์ผ๋ก ์ฐ๊ฒฐํ ์ ์์ต๋๋ค.
|
|
|
+ </p>
|
|
|
+
|
|
|
+
|
|
|
+ <h2>์ด๋ฒคํธ</h2>
|
|
|
+
|
|
|
+
|
|
|
+ <p class="desc">
|
|
|
+ ๋จ์ผ ๋ฃจํ์ ๋๊ณผ ์ ์ฒด ์์
์ โโ๋์ ๋ํ๋ด๋ ๋ ๊ฐ์ง ์ด๋ฒคํธ๊ฐ ์์ต๋๋ค. ๋น์ ์ ๋ค์๊ณผ ๊ฐ์ด ์๋ต ํ ์ ์์ต๋๋ค.
|
|
|
+ </p>
|
|
|
+ <code>
|
|
|
+ mixer.addEventListener( 'loop', function( e ) { โฆ} ); // properties of e: type, action and loopDelta
|
|
|
+ mixer.addEventListener( 'finished', function( e ) { โฆ} ); // properties of e: type, action and direction
|
|
|
+ </code>
|
|
|
+
|
|
|
+ <h2>์์ค</h2>
|
|
|
+
|
|
|
+ <p>
|
|
|
+ [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
|
+ </p>
|
|
|
+ </body>
|
|
|
+</html>
|