Updated docs more
This commit is contained in:
@@ -6,6 +6,8 @@ Object managing fields for interaction.
|
||||
### `createBoxField(string name, string spacePath, Vector3 origin, Quaternion orientation, Vector3 size)`
|
||||
Creates a new [BoxField](../types/field/BoxField.md) at `/field/[name]` with parent at `spacePath`.
|
||||
|
||||
### `createCylinderField(string name, string spacePath, Vector3 origin, Quaternion orientation, float length, float radius)`
|
||||
Creates a new [CylinderField](../types/field/CylinderField.md) at `/field/[name]` with parent at `spacePath`.
|
||||
|
||||
### `createSphereField(string name, string spacePath, Vector3 origin, float radius)`
|
||||
Creates a new [SphereField](../types/field/SphereField.md) at `/field/[name]` with parent at `spacePath`.
|
||||
@@ -9,5 +9,8 @@ Object managing input and interaction.
|
||||
### `registerInputHandler(string name, string field, string spacePath, Vector3 position, Quat rotation, string callbackPath, string callbackMethod)`
|
||||
Creates a new [InputHandler](../types/input/InputHandler.md) with the specified `name` and `field`, located relative to the space referenced in `spacePath` and the `postion` + `rotation`.
|
||||
|
||||
|
||||
## Methods
|
||||
|
||||
### `Vector<Vector<string inputHandlerUUID, Vector3 position>> getInputHandlers(string spacePath, bool excludeSelf)`
|
||||
Returns a list of all [InputHandler](../types/input/InputHandler.md) UUIDs and their positions (relative to the space at `spacePath`), as well as puts aliases to those handlers in `/input/global_handler/[UUID]`. Excludes handlers from this client if `excludeSelf` is true.
|
||||
@@ -11,4 +11,4 @@ Executes `method` on object at `path` on the client when the main logic loop of
|
||||
`delta` gives the time in seconds between the current time and the last time the logic loop executed while `timeToRender` gives the time in ms since epoch when the current frame is expected to reach the user's eyes (returns 0 for now).
|
||||
|
||||
### `disconnect(null)`
|
||||
Lets the server know that the client wishes to disconnect. After this it can be assumed the client is disconnected from the server.
|
||||
Lets the server know that the client wishes to disconnect. After this it can be assumed the client is disconnected from the server.
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
# /spatial
|
||||
|
||||
Object managing spatial nodes for parenting.
|
||||
Object managing spatial objects and spatial manipulation.
|
||||
|
||||
## Signals
|
||||
### `create(string name, string spacePath, Vector3 origin, Quat orientation, Vector3 scale, bool translatable, bool rotatable, bool scalable)`
|
||||
Creates a new [Spatial](../types/Spatial.md) at `/spatial/[name]` with parent at `spacePath`.
|
||||
### `createSpatial(string name, string spacePath, Vector3 origin, Quat orientation, Vector3 scale, bool translatable, bool rotatable, bool scalable)`
|
||||
Creates a new [Spatial](../types/Spatial.md) at `/spatial/spatial/[name]` with parent at `spacePath`.
|
||||
|
||||
### `createZone(string name, string fieldPath, string spacePath, Vector3 origin, Quat orientation, string callbackPath, string callbackMethod)`
|
||||
Creates a new [Zone](../types/Zone.md) at `/spatial/zone/[name]` with parent at `spacePath` and field at `fieldPath`. The arguments `callbackPath` and `callbackMethod` refer to a callback method accepting a `Vector` of 2 `TypedVector`s, the first being a list of names of nodes that have just entered the field and the second being names of nodes that left (as `string`).
|
||||
@@ -4,7 +4,7 @@ sidebar_position: 3
|
||||
|
||||
# Model
|
||||
### Derived from [Spatial](Spatial)
|
||||
A graphical model.
|
||||
A graphical model. It will only show when enabled.
|
||||
|
||||
## Properties
|
||||
|
||||
|
||||
@@ -7,4 +7,7 @@ A base type for all other types that exist in 3D space.
|
||||
|
||||
## Methods
|
||||
### `destroy()`
|
||||
Destroy this node immediately, as well as all its children if it has any.
|
||||
Destroy this node immediately, as well as all its children if it has any.
|
||||
|
||||
### `setEnabled(bool enabled)`
|
||||
Set if this node is enabled or not, for example a disabled model will not render and a disabled input handler will not recieve input.
|
||||
@@ -14,8 +14,10 @@ If false, object's origin cannot be modified from a client.
|
||||
If false, object's rotation cannot be modified from a client (e.g. point lights, point sound sources).
|
||||
### `scalable: bool`
|
||||
If false, object's scale cannot be modified from a client (e.g. [Fields](field/Field), [PointerInput](input/inputtypes/PointerInput.md)).
|
||||
### `zoneable: bool`
|
||||
If false, no zones will see that this spatial exists. Useful for locking objects in space so they aren't affected by workspaces and generally shouldn't be true for anything other than the root spatial of an object.
|
||||
|
||||
## Methods
|
||||
## Signals
|
||||
### `move(Vector3 position)`
|
||||
Moves the Spatial relative to itself if `translatable` is not `false`.
|
||||
|
||||
@@ -44,4 +46,11 @@ Sets the transform relative to the Spatial's space if `translatable`, `rotatable
|
||||
Sets the spatial parent of this `Spatial` while keeping the object in the same place in local space.
|
||||
|
||||
### `setSpatialParentInPlace(string parentPath)`
|
||||
Sets the spatial parent of this `Spatial` while not changing the object's absolute position.
|
||||
Sets the spatial parent of this `Spatial` while not changing the object's absolute position.
|
||||
|
||||
### `setZoneable(bool zoneable)`
|
||||
Enable/disable this spatial's zoneable property.
|
||||
|
||||
## Methods
|
||||
### `Vector<Vector3 origin, Quat orientation, Vector3 scale> getTransform(null)`
|
||||
Returns the `origin`, `orientation`, and `scale` of this spatial relative to its parent.
|
||||
18
docs/stardust-protocol/server/types/Zone.md
Normal file
18
docs/stardust-protocol/server/types/Zone.md
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
sidebar_position: 9
|
||||
---
|
||||
|
||||
# Zone
|
||||
### Derived from [Spatial](Spatial)
|
||||
An object to manipulate compatible [Spatials](Spatial) inside its field, such as organizing/aligning widgets or creating workspaces, acting as an inertial reference frame or part of a multi-selection wand.
|
||||
|
||||
|
||||
## Signals
|
||||
### `bool isCaptured(string spatialUUID)`
|
||||
Returns `true`/`false` if the [Spatial](Spatial) is captured by this zone or another, `null` if the [Spatial](Spatial) at `spatialUUID` is not accessible by this zone or does not exist.
|
||||
|
||||
### `capture(string spatialUUID)`
|
||||
Captures the [Spatial](Spatial) at `spatialUUID` if that [Spatial](Spatial) exists and is accessible by this zone. This means that the [Spatial](Spatial) cannot be seen or affected by other zones unless a zone is closer to the [Spatial](Spatial) than this zone.
|
||||
|
||||
### `release(string spatialUUID)`
|
||||
Uncaptures the [Spatial](Spatial) at `spatialUUID` so any zone the [Spatial](Spatial) is inside can access it.
|
||||
@@ -0,0 +1,7 @@
|
||||
# CylinderField
|
||||
### Derived from [Field](Field)
|
||||
A cylinder shaped field defined by radius and length, along the forward vector.
|
||||
|
||||
## Properties
|
||||
### `setSize(Vector3 size)`
|
||||
Sets the size of the box.
|
||||
@@ -4,18 +4,9 @@ sidebar_position: 1
|
||||
# InputHandler
|
||||
## Derived from [Spatial](../Spatial) (`scalable: false`)
|
||||
|
||||
A handler to allow clients to recieve input.
|
||||
A handler to allow clients to recieve input. Won't send input through the callback if disabled.
|
||||
|
||||
## Methods
|
||||
### `setOrigin(Vector3 origin)`
|
||||
Sets the origin to `origin`.
|
||||
|
||||
### `setOrientation(Quat orientation)`
|
||||
Sets the orientation to `orientation`.
|
||||
|
||||
### `setPose(Vector3 origin, Quat orientation)`
|
||||
Sets the pose using `origin` and `orientation` relative to the pose's space.
|
||||
|
||||
### `setField(string field)`
|
||||
Sets the field this input handler will use.
|
||||
|
||||
|
||||
4
docs/stardust-protocol/server/types/item/_category_.json
Normal file
4
docs/stardust-protocol/server/types/item/_category_.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Item",
|
||||
"position": 6
|
||||
}
|
||||
Reference in New Issue
Block a user