Nebula
Containers

IFrameCrossingPolicy

The game's say over where entities may cross a physics frame's boundary: anywhere on the hull, or only through portals.

generated from the sources
public interface IFrameCrossingPolicy

The game's say over where entities may cross a physics frame's boundary: anywhere on the hull, or only through portals. Asked on the worker that performs the crossing (the frame's pose owner, D15), once per tick while the entity wants to cross. Install one on PhysicsFrames.CrossingPolicy.

Methods

Decide

FrameCrossing Decide(NetworkIdentity entity, PhysicsFrame frame, bool leaving, Container from, Container to);
ParameterDescription
entityThe entity that wants to cross.
frameThe frame whose boundary it crosses.
leavingTrue when it leaves the frame for the space around it, false when it enters.
fromThe container it is in.
toThe container it would be in after the crossing.

On this page