Skip to main content

ImpactDetector.ImpactSyncArguments

A struct in Root.Township, Alta.Impact.

A hit on an ImpactDetector, sent to the chunk by the client whose player hit something or was hit. Built from an ImpactHitWithTool.

Constructors​

MemberWhat it is
ImpactSyncArguments(ImpactHitWithTool impactWithTool)Creates an ImpactDetector.ImpactSyncArguments from impactWithTool.

Fields​

MemberWhat it is
int channelIndexIndex of the impactor's channel that hit (0 to 7).
float effectivenessHow effective the hit was, 0 to 1.
int impactorIndexIndex of the impactor on the tool (0 to 63).
uint impactToolIdentifierEntity id of the tool that hit.
Vector3 normalSurface normal at the hit.
Vector3 pointWorld position of the hit.

Methods​

MemberWhat it is
void Serialize(Stream stream, Vector3 center)Writes or reads the hit, sending the point as an offset of up to 10 metres from the detector's position.

Used in​

Members of other types that take, return or hold a ImpactSyncArguments: