s&
info
About S&box
news
S&box Blog
forum
S&box Forums
home_repair_service
S&box Workshop
docs
S&box Docs
dashboard
Documentation
dashboard
Api Reference
public
Globals
scene
Scene System
library_books
Utility
diagnosis
Diagnostics
arrow_selector_tool
Input
music_note
Audio
shapes
Graphics
library_books
Network
library_books
Common Structs
library_books
Components
leak_add
Live Services
library_books
Attributes
library_books
Classes
library_books
Enums
contact_support
Ask
forum
Forum
chat
Discord
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Common Structs
Capsule
Capsule
Capsule
sealed
struct
Summary
A capsule object, defined by 2 points and a radius. A capsule is a cylinder with round ends (inset half spheres on each end).
Fields
CenterA
Position of point A.
CenterB
Position of point B.
Radius
Radius of a capsule.
Properties
RandomPointInside
Returns a random point within this capsule.
RandomPointOnEdge
Returns a random point on the edge of this capsule.
Static Methods
FromHeightAndRadius
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.