Scripting API
Scripting API
IStaticGeometry2D
Interface in Abyss.Core, from Abyss.Core.
What stands still in a world in 2D — 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 in 2D, its floor less what the colliders cover.
public interface IStaticGeometry2DRemarks
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 so no collider either.
Methods
StaticOutlines
IReadOnlyList<Vector2[]> StaticOutlines(World world, IReadOnlyCollection<ulong> entities)The outline of every collider of entities that does not move — on no body, or on a static one — and is no trigger, in world space, as the colliders are now: each convex, counter-clockwise, of at most eight corners, a shape more round or bent than that as several, round ends a little outside what they meet, an edge as a strip of a few centimeters. A Tilemap's colliders are left out: whether its tiles are met is IStaticGeometry2D.MeetsTiles.
Parameters
world: The world they are in.entities: Which entities to take colliders from.
MeetsTiles
bool MeetsTiles(World world, ulong entity)Whether the tiles of the Tilemap on entity are met as their slices' collision says: whether it has a collider of its tiles that stands still and is no trigger.
Parameters
world: The world it is in.entity: The Tilemap's entity.
