Scripting API

Scripting API

IStaticGeometry3D

Interface in Abyss.Core, from Abyss.Core.

The triangles of what stands still in a world in 3D — its static colliders, as a physics package has them — for what is worked out of a scene by code that has no physics of its own: a navmesh baked from colliders rather than from what is drawn.

public interface IStaticGeometry3D

Remarks

A physics package adds one to World.Services as it is built, so neither it nor what asks needs the other: where no physics package is installed there is none, and what asks makes do without, saying so.

Methods

StaticGeometry

MeshGeometry StaticGeometry(World world, IReadOnlyCollection<ulong> entities)

The triangles of every collider of entities that does not move — on no body, or on a static one — in world space, as the colliders are now: a box its six faces, a sphere and a capsule faces close to their round, a mesh its triangles. Empty where none has one.

Parameters

  • world: The world they are in.
  • entities: Which entities to take colliders from.