Class EntityBehaviorEllipsoidalRepulseAgents
- Namespace
- Vintagestory.GameContent
- Assembly
- VSEssentials.dll
Allows the entity to be pushed by or push other entities using an ellipsoidal repulsion area.
Uses the "ellipsoidalrepulseagents" code Open in GitHub
[DocumentAsJson]
public class EntityBehaviorEllipsoidalRepulseAgents : EntityBehaviorRepulseAgents
- Inheritance
-
EntityBehaviorEllipsoidalRepulseAgents
- Inherited Members
Examples
"behaviors": [
{
"code": "ellipsoidalrepulseagents"
"offset": { "x": 0.1, "z": 1.5 },
"radius": { "x": 1.9, "y": 1.5, "z": 4.6 }
}
]
Fields
offset (Required)
Local position offset of the ellipsoid
[DocumentAsJson("Required", "", false)]
protected Vec3d offset
Field Value
radius (Required)
Dimensions of the ellipsoid
[DocumentAsJson("Required", "", false)]
protected Vec3d radius