๋‚ด ์ธ์ƒ์—์„œ ๋ฏฟ์„ ๊ฑด ์˜ค์ง ๋‚˜ ์ž์‹ ๋ฟ!

The only one you can truly trust is yourself.

๊ฒŒ์ž„ ํ”„๋กœ๊ทธ๋ž˜๋ฐ/์–ธ๋ฆฌ์–ผ ์—”์ง„(Unreal)

<๊ฒŒ์ž„ ์ œ์ž‘์„ ์œ„ํ•œ ‘์‹œ์ž‘ํ•ด์š” ์–ธ๋ฆฌ์–ผ’> ์›จ๋น„๋‚˜ 4์ฃผ์ฐจ

๐ŸŽฎinspirer9 2022. 8. 30. 21:50
728x90
๋ฐ˜์‘ํ˜•

์˜ค๋Š˜์€ ํšŒ์‚ฌ ์ผ์— ์น˜์—ฌ์„œ '์‹œ์ž‘ํ•ด์š” ์–ธ๋ฆฌ์–ผ' ์›จ๋น„๋‚˜ 4์ฃผ์ฐจ ์ฐธ์„์„ ๋ชป ํ–ˆ๋‹ค. ๊ทธ๋ƒฅ ์žฌ๋ฐฉ์†ก ๋ณด๊ธฐ๋ฅผ ํ•ด์•ผ์ง€~ ํ–ˆ๋Š”๋ฐ ๋ชป ๋ณธ๋‹ค. ๋งํฌ๊ฐ€ ์–ด๋””์—๋„ ์—†์–ด์„œ 2์ฃผ์ฐจ ๋ดค์„ ๋•Œ ์ฃผ์†Œ ์ ์–ด๋‘” ๊ฑธ๋กœ ๋“ค์–ด๊ฐ€์„œ 3์ฃผ์ฐจ -> 4์ฃผ์ฐจ๋กœ ๊ฑด๋„ˆ ๋›ฐ์—ˆ๋‹ค.

ํ…”๋ ˆํฌํŠธ ์žฅ์น˜

  • ์Šคํƒœํ‹ฑ ๋ฉ”์‰ฌ์— ๋ฐ•์Šค ์ปฌ๋ฆฌ์ „ (ํŠธ๋ฆฌ๊ฑฐ) ๋งŒ๋“ค๊ณ , ๋ธ”๋ฃจํ”„๋ฆฐํŠธ(BP_ํ…”๋ ˆํฌํŠธ)๋กœ ๋งŒ๋“ ๋‹ค.
  • ์ด๋™ํ•  ์œ„์น˜๋ฅผ ์ขŒํ‘œ๋ฅผ ๋ณ€์ˆ˜์— ์ถ”๊ฐ€ํ•˜๊ณ , ๋ณ€์ˆ˜ ํƒ€์ž…์€ "์•กํ„ฐ > ์˜ค๋ธŒ์ ํŠธ ๋ ˆํผ๋Ÿฐ์Šค"๋กœ ์ง€์ •. ์ธ์Šคํ„ด์Šค๋กœ ์„ค์ •ํ•œ๋‹ค.
  • ํ…”๋ ˆํฌํŠธ ํ•  ๊ณณ์— ์Šคํƒœํ‹ฑ ๋ฉ”์‰ฌ ์ถ”๊ฐ€ํ•˜๊ณ , ์ด๋ฆ„์€ "ํ…”๋ ˆํฌํŠธ์ง€์ "์œผ๋กœ ์„ค์ •ํ•œ๋‹ค.

 

  • ํ…”๋ ˆํฌํŠธ ์ง€์ ์„ ์„ค์ •ํ•˜์ง€ ์•Š์•˜์„ ๋•Œ ์ž‘์—…
    • ์ด๋ฒคํŠธ ๊ทธ๋ž˜ํ”„์— ํ…”๋ ˆํฌํŠธ ์ง€์ ์„ ๊ฐ€์ง€๊ณ  ์™€์„œ isValid ๋ฉ”์„œ๋“œ ์ถ”๊ฐ€ํ•œ๋‹ค.
    • Is Not Valid์—๋Š” Print String์œผ๋กœ ๊ฒฝ๊ณ  ์ถœ๋ ฅ, Duration 2์ดˆ
    • Set Game Paused ์ถ”๊ฐ€ํ•ด์„œ ์—ฐ๊ฒฐ
    • Is Valid๋Š” ๋”ฐ๋กœ ์ฒ˜๋ฆฌํ•˜์ง€ ์•Š์Œ.
  • ํ…”๋ ˆํฌํŠธ ์„ฑ๊ณต์ผ ๊ฒฝ์šฐ ์ž‘์—…
    • ActorBeginOverlap : ์บ๋ฆญํ„ฐ๋ž‘ ํ…”๋ ˆํฌํŠธ๊ฐ€ ์ถฉ๋Œํ•  ๋•Œ
    • Other Actor(๋ฐ•์Šค ์ปฌ๋ฆฌ์ „์— ๋“ค์–ด์˜จ ์•กํ„ฐ)์— ํ…”๋ ˆํฌํŠธ ๋ฉ”์†Œ๋“œ ์—ฐ๊ฒฐ
      • ๋ณ€์ˆ˜ ํ…”๋ ˆํฌํŠธ ์ง€์ ๋งŒ๋“ค๊ณ , Get Actor Transform ๋ฉ”์†Œ๋“œ ์—ฐ๊ฒฐ
      • Return Value๋ฅผ ์šฐํด๋ฆญ -> ๊ตฌ์กฐ์ฒด ํ•€ ๋ถ„ํ• 
      • Location, Rotation ๊ฐ’์„ ํ…”๋ ˆํฌํŠธ ๋ฉ”์†Œ๋“œ์— ์—ฐ๊ฒฐ
  • ํ…”๋ ˆํฌํŠธ ๊พธ๋ฏธ๊ธฐ
    • ์ดํŽ™ํŠธ ์ถ”๊ฐ€, ์ž๋™ ํ™œ์„ฑํ™” ์˜ต์…˜ ๋„๊ธฐ
    • ์ดํŽ™ํŠธ ๋Œ์–ด์„œ ์ถ”๊ฐ€ํ•˜๊ณ , Activate ๋ฉ”์†Œ๋“œ ์ถ”๊ฐ€
    • ๋ธ”๋ฃจํ”„๋ฆฐํŠธ ๋…ธ๋“œ ์„  ๋ชจ์–‘ ๋ฐ”๊พธ๊ธฐ : ๋งˆ์šฐ์Šค ํœ ๋ฒ„ํŠผ ๋”๋ธ”ํด๋ฆญ
    • ์ดํŽ™ํŠธ์— ๋”œ๋ ˆ์ด 3์ดˆ ์ถ”๊ฐ€ํ•˜๊ณ , ํ…”๋ ˆํฌํŠธ๋กœ ์—ฐ๊ฒฐ

 

BP_ThirdPersonCharacter ์บ๋ฆญํ„ฐ ๊ตฌ์„ฑ

  • ์บก์Š ์ปดํฌ๋„ŒํŠธ
    • ํ™”์‚ดํ‘œ ์ปดํฌ๋„ŒํŠธ
    • ๋ฉ”์‹œ
  • ์นด๋ฉ”๋ผ ๋ถ
    • ํŒ”๋กœ์šฐ ์นด๋ฉ”๋ผ

 

ํ…”๋ ˆํฌํŠธ ํ•  ๋•Œ ์บ๋ฆญํ„ฐ ์•ˆ์›€์ง์ด๊ฒŒ ํ•˜๋ ค๋ฉด,

  • BP_ThirdPersonCharacter ๊ฒ€์ƒ‰ ํ˜•๋ณ€ํ™˜ -> ์บ๋ฆญํ„ฐ ํ˜•์ด ์•„๋‹ˆ๋ฉด ํ…”๋ ˆํฌํŠธ ์•ˆ์‹œํ‚ค๊ณ ,
    • ์บ๋ฆญํ„ฐํ˜•์ด๋ฉด ํ…”๋ ˆํฌํŠธ ์‹œํ‚จ๋‹ค.
  • Movement Mode ์ถ”๊ฐ€
    • New Movement Mode : None์œผ๋กœ ์ถ”๊ฐ€
  • ํ…”๋ ˆํฌํŠธ๊ฐ€ ๋๋‚ฌ์„ ๋•Œ, ๋‹ค์‹œ ๊ฑท๊ธฐ ๋ชจ๋“œ๋กœ ๋ณ€๊ฒฝ

 

๋–จ์–ด์ง€๋Š” ๋ฐœํŒ

  • ์บ๋ฆญํ„ฐ๊ฐ€ ๋ฐœํŒ์„ ๋ฐŸ์œผ๋ฉด, ์‹œ๋ฎฌ๋ ˆ์ด์…˜ ์˜ต์…˜์„ ์ผœ๋ฉด ๋œ๋‹ค.
  • Actor Begin Overlap์— ์บ๋ฆญํ„ฐ๊ฐ€ ๋ฐŸ์œผ๋ฉด ๋ฐœํŒ์„ ๋–จ์–ดํŠธ๋ฆฌ๊ธฐ ์œ„ํ•ด Set Simulate Physics์—์„œ Simulate๋ฅผ ์ฒดํฌํ•œ๋‹ค.
  • ๋”œ๋ ˆ์ด ์‹œ๊ฐ„ ์ถ”๊ฐ€ํ•ด์„œ ๋ฐœํŒ์ด ์ง€์—ฐ ์‹œ๊ฐ„ ํ›„ ๋–จ์–ด์ง€๋„๋ก ์„ค์ •ํ•œ๋‹ค.

 

์ ํ”„๋Œ€ ๋งŒ๋“ค๊ธฐ

  • Actor Begin Overlap์— ์บ๋ฆญํ„ฐ๊ฐ€ ๋ฐŸ์œผ๋ฉด ์ ํ”„๋กœ ๋‚ ๋ ค๋ฒ„๋ฆฌ๋Š” ๊ฑธ๋กœ
  • BP_ThirdPersonCharacter ์ถ”๊ฐ€ํ•˜๊ณ , Add Impulse(Character Movement)๋ฅผ ์—ฐ๊ฒฐ
  • ๋‚ ๋ฆฌ๋Š” ๋ฐฉํ–ฅ์€ ํ™”์‚ดํ‘œ ์ปดํฌ๋„ŒํŠธ ์ถ”๊ฐ€ํ•ด์„œ ๊ทธ ๋ฐฉํ–ฅ์„  Get Forward Vector๋กœ ๊ฐ€์ ธ์™€์„œ ๊ณฑํ•˜๊ธฐ 2000.
  • ๋ณ€์ˆ˜๋กœ ์Šน๊ฒฉํ•˜๊ณ , ์ธ์Šคํ„ด์Šค ์ฒดํฌ,  Add Impulse์— ์ถ”๊ฐ€

 

๋ฏธ์‚ฌ์ผ ํ•จ์ • ๋งŒ๋“ค๊ธฐ

  • BP_๋ฏธ์‚ฌ์ผ ํ•จ์ • : ํŠธ๋ฆฌ๊ฑฐ ๋ฐŸ์œผ๋ฉด ๋ฏธ์‚ฌ์ผ ๋‚ ์•„์˜ค๋Š” ํ•จ์ •
  • ๋ฏธ์‚ฌ์ผ ๋ณ€์ˆ˜ ์ถ”๊ฐ€, ๋ฏธ์‚ฌ์ผ ์Šคํƒœํ‹ฑ ๋ฉ”์‹œ ์ถ”๊ฐ€, ๋ฏธ์‚ฌ์ผ์— ํ™”์‚ดํ‘œ ์ถ”๊ฐ€.
  • ํ™”์‚ดํ‘œ ๋ฐฉํ–ฅ์œผ๋กœ ๋‚ ์•„๊ฐ€๊ฒŒ "๋ฐœ์‚ฌ์ฒด ์ด๋™ ์ปดํฌ๋„ŒํŠธ" ์ถ”๊ฐ€
  • ์บ๋ฆญํ„ฐ๊ฐ€ ํ•จ์ •์— ๊ฑธ๋ ธ์œผ๋ฉด, ๋ฏธ์‚ฌ์ผ ๋ฐœ์‚ฌ.
  • Activate, "๋ฐœ์‚ฌ์ฒด ์ด๋™ ์ปดํฌ๋„ŒํŠธ".
  • ๋ฏธ์‚ฌ์ผ์— ์บ๋ฆญํ„ฐ๊ฐ€ ์ถฉ๋Œํ–ˆ์„ ๊ฒฝ์šฐ ๊ฒŒ์ž„์˜ค๋ฒ„ ์ฒ˜๋ฆฌ.

 

๋Œ€์ถฉ ๋‹ค ๋ดค๋‹ค. ๊ธฐ์ดˆ๋Š” ๋๋‚œ ๊ฑด๊ฐ€? ใ…‹ใ…‹ใ…‹

728x90
๋ฐ˜์‘ํ˜•