public sealed struct Line
Represents a line in 3D space.
Related Guides
Broader workflow and conceptual references connected to this API.
We try to keep as close to standard web styles as possible - but not every property is implemented. We'll use this page to highlight any differences.
You can find information about how to install and use SteamCMD here <https://developer.valvesoftware.com/wiki/SteamCMD> to install the s&box Dedicated Server.
s&box provides a static Http class, this lets you easily create asynchronous HTTP requests of different methods (GET, POST, DELETE, etc…) providing JSON content and parsing JSON responses.
You can add attributes to your Component's properties in C# to change how they look in the editor/inspector.
UI can also be created using Razor, which allows you to use web-like HTML/CSS to create and style each Panel while also being able to leverage C#.
As you play with developing in s&box, you will notice some things are weird, missing, or suck. We are aware.
Constructors
Showing 2 constructors
No results match this filter.
Methods
Showing 7 methods
public float SqrDistance(Vector3 pos)
Returns closest squared distance from this line to given point.
public bool Trace(Ray ray, float radius, float maxDistance = 3.4028235E+38)
Perform a "trace" between this line and given ray. If the 2 lines intersect, returns true.
Parameters
ray: The ray to test against.radius: Radius of this line, which essentially makes this a capsule, since direct line-to-line intersections are very improbable. Must be above 0.maxDistance: Maximum allowed distance from the origin of the ray to the intersection. Default: 3.4028235E+38
Returns
Whether there was an intersection or not.
No results match this filter.
Properties
Showing 4 properties
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.System |
| Doc ID | T:Line |