Table of Contents

Class EntityBehaviorPassivePhysicsMultiBox

Namespace
Vintagestory.API.Common
Assembly
VSSurvivalMod.dll

Passive physics system for entities with support for multiple collision boxes.
Uses the "passivephysicsmultibox" code Open in GitHub

[DocumentAsJson]
public class EntityBehaviorPassivePhysicsMultiBox : EntityBehaviorPassivePhysics
Inheritance
EntityBehaviorPassivePhysicsMultiBox

Examples

"behaviors": [
 {
    "code": "passivephysicsmultibox"
	"collisionBoxes": [
		{ "x1": -1.4, "y1": 0, "z1": 0.1, "x2": 1.4, "y2": 1.2, "z2": 2.9 },
		{ "x1": -1.4, "y1": 0, "z1": -2.9, "x2": 1.4, "y2": 1.2, "z2": -0.1 },
		{ "x1": -1.4, "y1": 0, "z1": -5.9, "x2": 1.4, "y2": 1.2, "z2": -2.9 }
	],
	"groundDragFactor": 1,
	"airDragFallingFactor": 0.5,
	"gravityFactor": 1.0
 }
]

Fields

CollisionBoxes

Collision boxes for this entity

[DocumentAsJson]
protected Cuboidf[] OrigCollisionBoxes

Field Value

Cuboidf[]