ColliderHelper
ThaumielMapEditor.API.Helpers
Overviewβ
Fieldsβ
| Name | Type | Description |
|---|---|---|
SchematicColliders | Dictionary<SchematicData, HashSet<Collider>> | No description |
Methodsβ
| Signature | Returns | Description |
|---|---|---|
CreateClientObjectColliders(ClientSideObjectBase, SchematicData) | void | Creates the colliders on the server for the client side objects. |
CreateCollisionMesh(PrimitiveObject) | void | Creates the colliders for primitives |
DisableColliders(ClientSideObjectBase) | void | Disables all the colliders on the specified `ThaumielMapEditor.API.Blocks.Client⦠|
EnableColliders(ClientSideObjectBase) | void | Enables all the colliders on the specified `ThaumielMapEditor.API.Blocks.ClientS⦠|
SetColliders(ClientSideObjectBase, bool) | void | If enabled is true colliders will be enabled else if enabled is false co⦠|
Fieldsβ
SchematicCollidersβ
Type: Dictionary<SchematicData, HashSet<Collider>>
Methodsβ
CreateClientObjectCollidersβ
CreateClientObjectColliders
public void CreateClientObjectColliders(
ClientSideObjectBase clientObject,
SchematicData schematic
)
Creates the colliders on the server for the client side objects.
Parametersβ
| Name | Type | Description |
|---|---|---|
clientObject | ClientSideObjectBase | The ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase to create colliders for. |
schematic | SchematicData | The ThaumielMapEditor.API.Data.SchematicData that the colliders will be parented to. |
CreateCollisionMeshβ
CreateCollisionMesh
public void CreateCollisionMesh(PrimitiveObject primitive)
Creates the colliders for primitives
Parametersβ
| Name | Type | Description |
|---|---|---|
primitive | PrimitiveObject |
DisableCollidersβ
DisableColliders
public void DisableColliders(ClientSideObjectBase clientObject)
Disables all the colliders on the specified ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase.
Parametersβ
| Name | Type | Description |
|---|---|---|
clientObject | ClientSideObjectBase | The client side object to disable the server side colliders on. |
EnableCollidersβ
EnableColliders
public void EnableColliders(ClientSideObjectBase clientObject)
Enables all the colliders on the specified ThaumielMapEditor.API.Blocks.ClientSide.ClientSideObjectBase.
Parametersβ
| Name | Type | Description |
|---|---|---|
clientObject | ClientSideObjectBase | The client side object to enable the server side colliders on. |
SetCollidersβ
SetColliders
public void SetColliders(
ClientSideObjectBase clientObject,
bool enabled
)
If enabled is true colliders will be enabled else if enabled is false colliders will be disabled.
Parametersβ
| Name | Type | Description |
|---|---|---|
clientObject | ClientSideObjectBase | |
enabled | bool |