DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
PhysicsGeom Class Reference

Private Member Functions

proto external void Destroy ()
 Destroys geometry.
 
proto external void Destroy ()
 Destroys geometry.
 

Static Private Member Functions

static proto PhysicsGeom CreateBox (vector size)
 
static proto PhysicsGeom CreateSphere (float radius)
 
static proto PhysicsGeom CreateCapsule (float radius, float height)
 
static proto PhysicsGeom CreateCylinder (float radius, float height)
 
static proto PhysicsGeom CreateTriMesh (vector vertices[], int indices[], int numVertices, int numIndices)
 
static proto PhysicsGeom CreateBox (vector size)
 
static proto PhysicsGeom CreateSphere (float radius)
 
static proto PhysicsGeom CreateCapsule (float radius, float height)
 
static proto PhysicsGeom CreateCylinder (float radius, float height)
 
static proto PhysicsGeom CreateTriMesh (vector vertices[], int indices[], int numVertices, int numIndices)
 

Member Function Documentation

◆ CreateBox() [1/2]

static proto PhysicsGeom CreateBox ( vector  size)
staticprivate

Creates box geometry

Definition PhysicsGeom.c:12
static proto PhysicsGeom CreateBox(vector size)
Parameters
sizeDimensions of the box

◆ CreateBox() [2/2]

static proto PhysicsGeom CreateBox ( vector  size)
staticprivate

Creates box geometry

Parameters
sizeDimensions of the box

◆ CreateCapsule() [1/2]

static proto PhysicsGeom CreateCapsule ( float  radius,
float  height 
)
staticprivate

Creates capsule geometry

static proto PhysicsGeom CreateCapsule(float radius, float height)
Parameters
radiusRadius of the cylindrical/hemispherical part
heightHeight of the cylindrical part

◆ CreateCapsule() [2/2]

static proto PhysicsGeom CreateCapsule ( float  radius,
float  height 
)
staticprivate

Creates capsule geometry

Parameters
radiusRadius of the cylindrical/hemispherical part
heightHeight of the cylindrical part

◆ CreateCylinder() [1/2]

static proto PhysicsGeom CreateCylinder ( float  radius,
float  height 
)
staticprivate

Creates cylinder geometry

static proto PhysicsGeom CreateCylinder(float radius, float height)
Parameters
radiusRadius of the cylinder
heightHeight of the cylinder

◆ CreateCylinder() [2/2]

static proto PhysicsGeom CreateCylinder ( float  radius,
float  height 
)
staticprivate

Creates cylinder geometry

Parameters
radiusRadius of the cylinder
heightHeight of the cylinder

◆ CreateSphere() [1/2]

static proto PhysicsGeom CreateSphere ( float  radius)
staticprivate

Creates sphere geometry

static proto PhysicsGeom CreateSphere(float radius)
Parameters
radiusRadius of the sphere

◆ CreateSphere() [2/2]

static proto PhysicsGeom CreateSphere ( float  radius)
staticprivate

Creates sphere geometry

Parameters
radiusRadius of the sphere

◆ CreateTriMesh() [1/2]

static proto PhysicsGeom CreateTriMesh ( vector  vertices[],
int  indices[],
int  numVertices,
int  numIndices 
)
staticprivate

Creates tri-mesh geometry

const int numVerts = 4;
const int numInds = 12;
vector verts[numVerts] = { "0 0 0", "1 0 0", "0 0 1", "0 1 0" };
int inds[numInds] = { 0, 1, 2, 0, 3, 1, 3, 2, 1, 0, 2, 3 };
PhysicsGeom geom = PhysicsGeom.CreateTriMesh(verts, inds, numVerts, numInds);
static proto PhysicsGeom CreateTriMesh(vector vertices[], int indices[], int numVertices, int numIndices)
Definition EnConvert.c:119
Parameters
verticesSet of vertices representing the geometry
indicesSet of indices representing the geometry
numVerticesNumber of vertices
numIndicesNumber of indices

◆ CreateTriMesh() [2/2]

static proto PhysicsGeom CreateTriMesh ( vector  vertices[],
int  indices[],
int  numVertices,
int  numIndices 
)
staticprivate

Creates tri-mesh geometry

const int numVerts = 4;
const int numInds = 12;
vector verts[numVerts] = { "0 0 0", "1 0 0", "0 0 1", "0 1 0" };
int inds[numInds] = { 0, 1, 2, 0, 3, 1, 3, 2, 1, 0, 2, 3 };
PhysicsGeom geom = PhysicsGeom.CreateTriMesh(verts, inds, numVerts, numInds);
Parameters
verticesSet of vertices representing the geometry
indicesSet of indices representing the geometry
numVerticesNumber of vertices
numIndicesNumber of indices

◆ Destroy() [1/2]

proto external void Destroy ( )
private

Destroys geometry.

◆ Destroy() [2/2]

proto external void Destroy ( )
private

Destroys geometry.


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