Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
Contact Class Reference

Output structure for reporting collisions. More...

Private Member Functions

void Contact ()
void Contact ()
void ~Contact ()
void ~Contact ()
proto native vector GetNormalImpulse ()
proto native vector GetNormalImpulse ()
proto native float GetRelativeVelocityAfter (vector vel)
proto native float GetRelativeVelocityAfter (vector vel)
proto native float GetRelativeVelocityBefore (vector vel)
proto native float GetRelativeVelocityBefore (vector vel)

Private Attributes

float Impulse
 Impulse applied to resolve the collision.
SurfaceProperties Material1
 Surface properties of Object1.
SurfaceProperties Material2
 Surface properties of Object2.
vector Normal
 Collision axis at the contact point.
float PenetrationDepth
 Penetration depth on Object1.
Physics Physics1
Physics Physics2
vector Position
 Position of the contact point (world space).
float RelativeNormalVelocityAfter
float RelativeNormalVelocityBefore
vector RelativeVelocityAfter
vector RelativeVelocityBefore
int ShapeIndex1
 Index of collider on Object1.
int ShapeIndex2
 Index of collider on Object2.
vector VelocityAfter1
 Velocity of Object1 after collision (world space).
vector VelocityAfter2
 Velocity of Object2 after collision (world space).
vector VelocityBefore1
 Velocity of Object1 before collision (world space).
vector VelocityBefore2
 Velocity of Object2 before collision (world space).

Detailed Description

Output structure for reporting collisions.

Definition at line 9 of file contact.c.

Constructor & Destructor Documentation

◆ Contact() [1/2]

void Contact ( )
inlineprivate

Definition at line 11 of file contact.c.

◆ ~Contact() [1/2]

void ~Contact ( )
inlineprivate

Definition at line 12 of file contact.c.

◆ Contact() [2/2]

void Contact ( )
inlineprivate

Definition at line 11 of file contact.c.

◆ ~Contact() [2/2]

void ~Contact ( )
inlineprivate

Definition at line 12 of file contact.c.

Member Function Documentation

◆ GetNormalImpulse() [1/2]

proto native vector GetNormalImpulse ( )
private

◆ GetNormalImpulse() [2/2]

proto native vector GetNormalImpulse ( )
private

◆ GetRelativeVelocityAfter() [1/2]

proto native float GetRelativeVelocityAfter ( vector vel)
private

◆ GetRelativeVelocityAfter() [2/2]

proto native float GetRelativeVelocityAfter ( vector vel)
private

◆ GetRelativeVelocityBefore() [1/2]

proto native float GetRelativeVelocityBefore ( vector vel)
private

◆ GetRelativeVelocityBefore() [2/2]

proto native float GetRelativeVelocityBefore ( vector vel)
private

Field Documentation

◆ Impulse

float Impulse
private

Impulse applied to resolve the collision.

Definition at line 21 of file contact.c.

Referenced by Car::OnContact().

◆ Material1

SurfaceProperties Material1
private

Surface properties of Object1.

Definition at line 17 of file contact.c.

◆ Material2

SurfaceProperties Material2
private

Surface properties of Object2.

Definition at line 19 of file contact.c.

◆ Normal

vector Normal
private

Collision axis at the contact point.

Definition at line 27 of file contact.c.

◆ PenetrationDepth

float PenetrationDepth
private

Penetration depth on Object1.

Definition at line 31 of file contact.c.

◆ Physics1

Physics Physics1
private

Definition at line 14 of file contact.c.

◆ Physics2

Physics Physics2
private

Definition at line 15 of file contact.c.

◆ Position

vector Position
private

Position of the contact point (world space).

Definition at line 29 of file contact.c.

Referenced by EOnContact(), FireplaceBase::EOnContact(), and EntityAI::GetImpactSurfaceTypeEx().

◆ RelativeNormalVelocityAfter

float RelativeNormalVelocityAfter
private

Definition at line 34 of file contact.c.

◆ RelativeNormalVelocityBefore

float RelativeNormalVelocityBefore
private

Definition at line 33 of file contact.c.

◆ RelativeVelocityAfter

vector RelativeVelocityAfter
private

Definition at line 36 of file contact.c.

◆ RelativeVelocityBefore

vector RelativeVelocityBefore
private

Definition at line 35 of file contact.c.

Referenced by EntityAI::GetImpactSurfaceTypeEx(), and EntityAI::ProcessImpactSoundEx().

◆ ShapeIndex1

int ShapeIndex1
private

Index of collider on Object1.

Definition at line 23 of file contact.c.

◆ ShapeIndex2

int ShapeIndex2
private

Index of collider on Object2.

Definition at line 25 of file contact.c.

◆ VelocityAfter1

vector VelocityAfter1
private

Velocity of Object1 after collision (world space).

Definition at line 43 of file contact.c.

◆ VelocityAfter2

vector VelocityAfter2
private

Velocity of Object2 after collision (world space).

Definition at line 45 of file contact.c.

◆ VelocityBefore1

vector VelocityBefore1
private

Velocity of Object1 before collision (world space).

Definition at line 39 of file contact.c.

◆ VelocityBefore2

vector VelocityBefore2
private

Velocity of Object2 before collision (world space).

Definition at line 41 of file contact.c.


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/1_core/physics/contact.c