Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Build a Unity 3D game with Mapbox (8/29) Creating the Droid class

9.3K views
•
June 14, 2018
by
Mapbox
YouTube video player
Build a Unity 3D game with Mapbox (8/29) Creating the Droid class

TL;DR

Learn how to create and implement the droid class in the Pocket Droids Go game.

Transcript

everybody this is been with Deb slopes calm and in this video we are going to go ahead and set up our droid class for Pocket droids go droids are going to be our collectable and capturable entities in this game so they have a really important role but it's going to be really easy to implement them we are going to go ahead and right click on our mod... Read More

Key Insights

  • ☠️ The droid class in the Pocket Droids Go game includes variables for spawn rate, catch rate, attack, defense, and HP.
  • ♿ Getters are implemented for accessing the values of these variables.
  • 😑 Pre-generated droid models are added to the game by dragging them into the designated directory.
  • 💳 The droid script is attached to each droid model to define its behavior and statistics.
  • 👻 Colliders are added to the droid prefabs to allow interaction with the droids in the game.
  • 🧘 Adjustments can be made to the size and position of the colliders to accurately represent the droids' shapes.
  • 🎭 The on Mouse Brown function is currently empty and does not perform any actions.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What variables are included in the droid class?

The droid class includes variables for spawn rate, catch rate, attack, defense, and HP. These variables determine various aspects of the droids' behavior and statistics in the game.

Q: What is the purpose of the on Mouse Brown function in the droid class?

The on Mouse Brown function currently serves no purpose and is left empty. It is likely to be used in the future to handle actions when a droid is tapped or clicked on.

Q: How are pre-generated droid models added to the game?

The pre-generated droid models are dragged into the droids directory in Unity's assets. Then, the droid script is attached to each droid model by dragging the script onto them.

Q: Why is a collider added to the droid prefab?

A collider is added to the droid prefab to enable interaction with the droids in the game. When a droid is tapped or clicked on, the collider helps to trigger actions, such as going into the capture screen.

Summary & Key Takeaways

  • The video focuses on setting up the droid class for the Pocket Droids Go game.

  • It demonstrates creating a new folder for droids and adding a C# script for the droid class.

  • The droid class includes variables for spawn rate, catch rate, attack, defense, and HP, as well as getters and an empty function for on Mouse Brown.

  • Pre-generated droid models are added to the droids directory and the droid script is attached to them.

  • A collider is added to the droid prefab, and adjustments are made to its size and position.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.