Nebula
Core

CrossIslandJoint

A physics constraint Nebula cannot simulate symmetrically: a Joint or a child ArticulationBody whose two bodies belong to networked entities in different containers, so that two workers can end up each owning one side.

generated from the sources
public readonly struct CrossIslandJoint

A physics constraint Nebula cannot simulate symmetrically: a Joint or a child ArticulationBody whose two bodies belong to networked entities in different containers, so that two workers can end up each owning one side. See Distributed physics.

Constructors

CrossIslandJoint

public CrossIslandJoint(Component constraint, NetworkIdentity owner, NetworkIdentity connected, Container ownerContainer, Container connectedContainer);

Fields

Constraint

public readonly Component Constraint;

The Joint or ArticulationBody component that spans the seam.

Owner

public readonly NetworkIdentity Owner;

The entity the constraint component sits on.

Connected

public readonly NetworkIdentity Connected;

The entity that owns the body the constraint is connected to.

OwnerContainer

public readonly Container OwnerContainer;

The container Owner resolves to, or null for none.

ConnectedContainer

public readonly Container ConnectedContainer;

The container Connected resolves to, or null for none.

Methods

Describe

public static string Describe(Container container);

The id of a container, or "no container" for null: what the diagnostics print.

ToString

public override string ToString();

One line naming the constraint, both entities and both containers.

On this page