update: 2016/06/25
reference:
1. Unreal Engine 4 Documentation | Unreal Engine
A. 新增專案:
1. New Project > Blueprint > Blank:
> Desktop / Console > Maximum Quality > No Starter Content
> Folder ... > Name ... > Create Project
B. Hit Event(擊中事件)
1. 在 Level Editor 裡, 選取 Cube:
> 勾選: Simulation Generates Hit Events
> Collision Presets: 選取 Custom
> Collision Enabled: 選取 Collision Enabled
> Object Type: 選取 WorldStatic
> 在 Trace Responses 下,
> 對於 PhysicsBody (將是 Sphere 的 Object Type), 確認勾選 Block
> 確認勾選: Simulate Physics
> 確認勾選: Enable Gravity
> 勾選: Simulation Generates Hit Events
> Collision Presets: 選取 Custom
> Collision Enabled: 選取 Collision Enabled
> Object Type: 選取 PhysicsBody
> 在 Trace Responses 下,
> 對於 WorldStatic (是 Cube 的 Object Type), 確認勾選 Block
> 選取 Cube
> "Blueprint / Add Script"
> "Create Blueprint"
> 滑鼠右鍵
> Add Event > Collision > Event Hit
> 將產生的 Event Hit Node 與 PrintString Node 連結
C. Overlap Event(交疊事件)
1. 在 Level Editor 裡, 選取 Sphere:
> 勾選: Generate Overlap Events
> 在 Trace Responses 下,
> 對於 WorldStatic (是 Cube 的 Object Type), 確認勾選 Overlap
> 勾選: Generate Overlap Events
> 在 Trace Responses 下,
> 對於 PhysicsBody (是 Sphere 的 Object Type), 確認勾選 Overlap
3. 打開 Cube_Blueprint, 並加入 Event ActorBeginOverlap
> 滑鼠右鍵
> Add Event > Collision > Event ActorBeginOverlap
> 將產生的 Event ActorBeginOverlap Node 與 PrintString Node 連結
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。