|
Arma Reforger Script API
|
SCR_Physics Class. More...
Public Member Functions | |
| void | TraceSegmented (vector start, vector end, TraceFlags flags=TraceFlags.DEFAULT, EPhysicsLayerDefs layerMask=EPhysicsLayerDefs.Default, array< IEntity > excludeArray=null, float segmentSize=DEFAULT_TRACE_SEGMENT_LENGTH) |
| Does trace for long distance as a series of shorter traces across multiple frames, for performance improvements. | |
| ScriptInvoker | GetOnTraceFinished () |
Static Public Member Functions | |
| static void | InitPhysicsHelper () |
| static int | RemapInteractionLayer (notnull Physics physicsObject, EPhysicsLayerDefs inputLayer, EPhysicsLayerDefs replaceLayer) |
| Iterates through a physics object's colliders and remaps the input physics interaction layer to the replace physics interaction layer Returns how many colliders were remapped. | |
| static void | ChangeSimulationState (IEntity ent, SimulationState simState, bool recursively=false) |
Static Public Attributes | |
| static ref array< ref Shape > | m_aDebugShapes = {} |
Protected Attributes | |
| vector | m_vCurrentStartPosition |
| vector | m_vCurrentEndPosition |
| vector | m_vOriginalEnd |
| vector | m_vOriginalStart |
| vector | m_vDirection |
| float | m_fLength |
| float | m_fLengthTraced |
| ref ScriptInvoker< vector, IEntity > | m_OnTraceFinished |
| ref TraceParam | m_TraceParam |
Static Protected Attributes | |
| const float | DEFAULT_TRACE_SEGMENT_LENGTH = 100 |
SCR_Physics Class.
Contains various physics functions
|
static |
| ScriptInvoker SCR_PhysicsHelper.GetOnTraceFinished | ( | ) |
|
static |
|
static |
Iterates through a physics object's colliders and remaps the input physics interaction layer to the replace physics interaction layer Returns how many colliders were remapped.
| void SCR_PhysicsHelper.TraceSegmented | ( | vector | start, |
| vector | end, | ||
| TraceFlags | flags = TraceFlags::DEFAULT, | ||
| EPhysicsLayerDefs | layerMask = EPhysicsLayerDefs::Default, | ||
| array< IEntity > | excludeArray = null, | ||
| float | segmentSize = DEFAULT_TRACE_SEGMENT_LENGTH ) |
Does trace for long distance as a series of shorter traces across multiple frames, for performance improvements.
Subscribe to m_OnTraceFinished<vector, IEntity> that gets invoked after the trace is done. Create new instance of SCR_PhysicsHelper when you want to do a trace.
|
staticprotected |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |