Skip to content
CRUSHFORMV1.1.0
GET IT ON FAB

REFERENCECOMPONENTS

UCFNetImpactFeedbackComponent

MODULECrushformImpactINCLUDECFNetImpactFeedbackComponent.hPARENTUCFImpactFeedbackComponent

Reports the owner's root body hits only where that body is simulated (ICFDeformHost::IsCrushformImpactSourceHere of the owner's host, found through UCFHostRegistry; the authority without one): everywhere else the body is steered towards replicated state, and its contacts come and go with the corrections. The simulating node plays the impact at once and relays it; every other node plays the relayed copy.

Functions

AUTHORITY · server, every machineLOCAL · this machinePURE · read only
bool IsRelayDue(double SecondsSinceLast, float IntervalSeconds, uint8 LastIntensity, uint8 Intensity)
C++ ONLY

Whether an impact goes out to other players: once IntervalSeconds have passed since the last one, or sooner when it is markedly stronger, so a scrape just before a crash does not leave everyone else hearing only the scrape. Intensities are the packed 0..255 values.

Properties

float MinRelayIntervalSeconds = 0.5f
Default
0.5f
Category
Impact

Functions

  • ComputeIntensityIntensity of a hit, 0..1, from the hit's impulse per kilogram of the hit body (that is, its velocity change in cm/s); negative when below MinImpulsePerKg.
  • MakeSourceIdThe id an impact event carries for Primitive, so its cooldown holds whichever node or path the event came by.
  • SetObservedPrimitiveSets the primitive whose hits are reported.
  • GetObservedPrimitiveThe primitive whose hits are reported; null until SetObservedPrimitive is called.