RepulsionConfig
Documentation for the RepulsionConfig asset type.
Location
Entity/Repulsion
Use in Your Files
Add this to your JSON files for IDE autocompletion and validation:
"$schema": "https://hytaledb.ginco.gg/schemas/RepulsionConfig.schema.json" Schema
Radius
NullableNumberOrSpecial
The radius around the entity
MinForce
NullableNumberOrSpecial
The floor of the applied force while within effective radius
MaxForce
NullableNumberOrSpecial
The max force to be applied at 100% intersection
All of
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "RepulsionConfig.json",
"title": "RepulsionConfig",
"description": "RepulsionConfig asset type",
"type": "object",
"allOf": [
{
"$ref": "base.schema.json"
}
],
"properties": {
"Radius": {
"description": "The radius around the entity",
"$ref": "base.schema.json#/$defs/NullableNumberOrSpecial"
},
"MinForce": {
"description": "The floor of the applied force while within effective radius",
"$ref": "base.schema.json#/$defs/NullableNumberOrSpecial"
},
"MaxForce": {
"description": "The max force to be applied at 100% intersection",
"$ref": "base.schema.json#/$defs/NullableNumberOrSpecial"
}
}
}