Game Design
- Light
- Event System
- Game UI
- Logic
- AR Camera
- ImageTarget
- Basket Game
Lgith
- Directional Light
- Position: (0, 3, 0)
- Rotation: (50, -30, 0)
Event System
- EventSystem
- To detect input
Game UI(Canvas)
- Image
- Button
- Event Trigger
- Add
Logic
in Event Trigger - Text
- Put under
Button
- Text: “Button”
- Put under
- Score(Text)
- Text: 0
- Text
- Text: “Score : “
Logic
Basket Control.cs
- My_score:
score
- Basket Ball:
BasketBall
- Firepoint:
FirePoint
AR Camera
- Vuforia
- Download vuforia and import
- Open Vuforia
- Register or Login
- Click Develop Menu
- Create Development Key
- Vuforia Behavior>Open Vuforia configutration
- Copy and Paste License Key of Vuforia
Image Target
- ImageTarget
- Asset>Vuforia>Prefabs>ImageTarget
- Drag and drop to Hierarchy
- In Vuforia, Develop>Target Manager>Add Database
- Create Database
- Develop>Target Manager>Databse Name>Add Target
- Create target
- Develop>Target Manager>Database Name>Download Database
- Import Target and drag and drop to Image Target
- Set Target Behaviour
- Image Target>Inspector>Image Target Behaviour
- Change Database and Image Target
Basket Game
- Stand
- Cube
- BasketBall
- Sphere
- Physic Material
Dynamic Friction: 0.6
Static Friction: 0.6
Bounciness: 0.6
Friction Combine: Maximum - Rigidbody
Use Gravity: Check Ball Control.cs
- FirePoint
- Empty Object
- basket
- Import Asset
- score_box
- Cube
- Is Trigger: Check
- Mesh Renderer: Uncheck