Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_CollisionDamageContainer Interface Reference

Public Member Functions

vector GetAverageImpactPosition ()
 
void UpdateImpactPosition (vector position)
 Adds a provided position to previous positions for the calculation of the average position.
 
vector GetOwnerVelocityBefore ()
 
vector GetOtherVelocityBefore ()
 
void SCR_CollisionDamageContainer (notnull IEntity owner, notnull IEntity other, float impulse, vector velocityBefore1, vector velocityAfter1, vector velocityBefore2, vector velocityAfter2, vector impactPosition, vector impactNormal)
 

Public Attributes

IEntity m_Other
 
IEntity m_OtherPilot
 
vector m_vOwnerOriginAtThePointOfImpact
 
vector m_vOtherOriginAtThePointOfImpact
 
vector m_vImpactNormal
 
float m_fImpulse
 
float m_fTotalMomentumOwner
 
float m_fTotalMomentumOther
 
float m_fDamageShare = 1
 
int m_iOtherResponseIndex bool m_bOtherIsDynamic
 
bool m_bOtherIsDestructible
 

Protected Attributes

int m_iCollisionsCounter
 
vector m_vImpactPosition
 
vector m_vOwnerVelocityBefore
 
vector m_vOtherVelocityBefore
 

Constructor & Destructor Documentation

◆ SCR_CollisionDamageContainer()

void SCR_CollisionDamageContainer.SCR_CollisionDamageContainer ( notnull IEntity owner,
notnull IEntity other,
float impulse,
vector velocityBefore1,
vector velocityAfter1,
vector velocityBefore2,
vector velocityAfter2,
vector impactPosition,
vector impactNormal )
Parameters
[in]owner
[in]other
[in]impulse
[in]velocityBefore1
[in]velocityAfter1
[in]velocityBefore2
[in]velocityAfter2
[in]impactPositionin local space of the owner
[in]impactNormal

Member Function Documentation

◆ GetAverageImpactPosition()

vector SCR_CollisionDamageContainer.GetAverageImpactPosition ( )
Returns
averaged poisition of impacts in local space of the owner

◆ GetOtherVelocityBefore()

vector SCR_CollisionDamageContainer.GetOtherVelocityBefore ( )
Returns

◆ GetOwnerVelocityBefore()

vector SCR_CollisionDamageContainer.GetOwnerVelocityBefore ( )
Returns

◆ UpdateImpactPosition()

void SCR_CollisionDamageContainer.UpdateImpactPosition ( vector position)

Adds a provided position to previous positions for the calculation of the average position.

Parameters
[in]position

Member Data Documentation

◆ m_bOtherIsDestructible

bool SCR_CollisionDamageContainer.m_bOtherIsDestructible

◆ m_bOtherIsDynamic

int m_iOtherResponseIndex bool SCR_CollisionDamageContainer.m_bOtherIsDynamic

◆ m_fDamageShare

float SCR_CollisionDamageContainer.m_fDamageShare = 1

◆ m_fImpulse

float SCR_CollisionDamageContainer.m_fImpulse

◆ m_fTotalMomentumOther

float SCR_CollisionDamageContainer.m_fTotalMomentumOther

◆ m_fTotalMomentumOwner

float SCR_CollisionDamageContainer.m_fTotalMomentumOwner

◆ m_iCollisionsCounter

int SCR_CollisionDamageContainer.m_iCollisionsCounter
protected

◆ m_Other

IEntity SCR_CollisionDamageContainer.m_Other

◆ m_OtherPilot

IEntity SCR_CollisionDamageContainer.m_OtherPilot

◆ m_vImpactNormal

vector SCR_CollisionDamageContainer.m_vImpactNormal

◆ m_vImpactPosition

vector SCR_CollisionDamageContainer.m_vImpactPosition
protected

◆ m_vOtherOriginAtThePointOfImpact

vector SCR_CollisionDamageContainer.m_vOtherOriginAtThePointOfImpact

◆ m_vOtherVelocityBefore

vector SCR_CollisionDamageContainer.m_vOtherVelocityBefore
protected

◆ m_vOwnerOriginAtThePointOfImpact

vector SCR_CollisionDamageContainer.m_vOwnerOriginAtThePointOfImpact

◆ m_vOwnerVelocityBefore

vector SCR_CollisionDamageContainer.m_vOwnerVelocityBefore
protected

The documentation for this interface was generated from the following file: