Skip to content

SeinARTS Collision

Class · USeinCollisionSettings : USeinSettings

Parent: Sein Settings

#include "Settings/SeinCollisionSettings.h"

Collision settings: channels, the mass-ratio cutoff and the resolver.

TArray<FSeinCollisionChannelDefinition> CollisionChannels

Editable in defaults and on instances · Saved to config

The project’s collision channels, in addition to the built-in Default channel. Each entry names a channel and gives its default response. A collider picks one channel as its Object Type and can override its response to any channel, so what a collider is stays separate from how it moves (Mobility). Colliders refer to channels by name, so renaming is safe and reordering is cosmetic. The Default channel is always present and cannot be removed.

int32 CollisionMassRatioCutoff · default 8 · min 1

Editable in defaults and on instances · Saved to config

How lopsided two bodies’ masses must be before the heavier one stops yielding at all. When two movable colliders overlap and the heavier is at least this many times the lighter’s mass, the heavier is treated as immovable for that pair and the lighter body absorbs the whole separation — so infantry can never shove a tank, no matter how many pile on. Below the ratio, the push is split by mass. This is a whole-number ratio (8 means 8:1); set it very high to effectively disable the cutoff and always split by mass.

TSoftClassPtr<USeinCollisionResolver> CollisionResolverClass · default USeinCollisionResolverDefault::StaticClass()

Editable in defaults and on instances · Saved to config

Which collision resolver separates overlapping bodies and emits overlap events for the whole game, once per tick. The collision-resolution system just delegates to the class you pick here; nothing else in the framework cares how it works underneath.

The default is Sein Collision Resolver (Default), a Gauss-Seidel relaxation that pushes overlapping solid bodies apart along their shortest-separation axis with mass-weighting, treats walls and statics as immovable, and holds a body at a barrier rather than shoving it through a wall or off the grid. The framework also ships Sein Collision Resolver (Parallel), a Jacobi variant that spreads the work across threads for large unit counts. Pick either, or your own subclass (impulse-based, position-based dynamics, and so on), without touching any other framework code. Set this to None to turn collision resolution OFF: solid bodies overlap freely and overlap events stop firing. A one-time on-screen warning fires while it is off (suppress it in Editor Preferences).

C++ members (2)
  • static FName GetDefaultCollisionChannelName(); Framework-reserved collision channel — always present and NOT stored in the CollisionChannels array (so it can’t be removed), like the nav “Default” layer / vision “Normal” layer. Block-responds by default.
  • TArray<FSeinCollisionChannelDefinition> GetAllCollisionChannels() const; All collision channels: the reserved “Default” first, then the designer- authored CollisionChannels (unnamed / duplicate-“Default” entries skipped). Use everywhere channels are enumerated (resolver defaults, response matrix, Object Type dropdown, debug tint) so “Default” is always available even when the editable array is empty.