Scripting API

Scripting API

Colliders3DGeometry

Class in Abyss.Physics3D, from Abyss.Physics3D.

The colliders that stand still, as triangles, for what is worked out of a scene in the editor by code with no physics of its own: a navmesh baked from colliders. Adds itself to the world's services as the engine's IStaticGeometry3D.

public sealed class Colliders3DGeometry : IPlugin, IStaticGeometry3D

Remarks

Standing still is ground — a collider with no Rigidbody 3D on its entity or above it — or a collider whose nearest Rigidbody 3D is Static. A trigger meets nothing, and is left out.

Each shape as Physics 3D makes it: a box its six faces, scaled with its entity; a sphere and a capsule faces close to their round, the radius scaled by the larger of the scales across, as their shapes are; a mesh collider its entity's mesh's triangles, convex or not.

Methods

Build

public void Build(Schedule schedule)

Parameters

  • schedule

StaticGeometry

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

Parameters

  • world
  • entities