Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
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)
 Creates box geometry.
static proto PhysicsGeom CreateBox (vector size)
 Creates box geometry.
static proto PhysicsGeom CreateCapsule (float radius, float height)
 Creates capsule geometry.
static proto PhysicsGeom CreateCapsule (float radius, float height)
 Creates capsule geometry.
static proto PhysicsGeom CreateCylinder (float radius, float height)
 Creates cylinder geometry.
static proto PhysicsGeom CreateCylinder (float radius, float height)
 Creates cylinder geometry.
static proto PhysicsGeom CreateSphere (float radius)
 Creates sphere geometry.
static proto PhysicsGeom CreateSphere (float radius)
 Creates sphere geometry.
static proto PhysicsGeom CreateTriMesh (vector vertices[], int indices[], int numVertices, int numIndices)
 Creates tri-mesh geometry.
static proto PhysicsGeom CreateTriMesh (vector vertices[], int indices[], int numVertices, int numIndices)
 Creates tri-mesh geometry.

Detailed Description

Definition at line 11 of file physicsgeom.c.

Member Function Documentation

◆ CreateBox() [1/2]

proto PhysicsGeom CreateBox ( vector size)
staticprivate

Creates box geometry.

static proto PhysicsGeom CreateBox(vector size)
Creates box geometry.
Parameters
sizeDimensions of the box

◆ CreateBox() [2/2]

proto PhysicsGeom CreateBox ( vector size)
staticprivate

Creates box geometry.

Parameters
sizeDimensions of the box

◆ CreateCapsule() [1/2]

proto PhysicsGeom CreateCapsule ( float radius,
float height )
staticprivate

Creates capsule geometry.

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

◆ CreateCapsule() [2/2]

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]

proto PhysicsGeom CreateCylinder ( float radius,
float height )
staticprivate

Creates cylinder geometry.

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

◆ CreateCylinder() [2/2]

proto PhysicsGeom CreateCylinder ( float radius,
float height )
staticprivate

Creates cylinder geometry.

Parameters
radiusRadius of the cylinder
heightHeight of the cylinder

◆ CreateSphere() [1/2]

proto PhysicsGeom CreateSphere ( float radius)
staticprivate

Creates sphere geometry.

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

◆ CreateSphere() [2/2]

proto PhysicsGeom CreateSphere ( float radius)
staticprivate

Creates sphere geometry.

Parameters
radiusRadius of the sphere

◆ CreateTriMesh() [1/2]

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);
int[] PhysicsGeom
Definition physicsgeom.c:10
Parameters
verticesSet of vertices representing the geometry
indicesSet of indices representing the geometry
numVerticesNumber of vertices
numIndicesNumber of indices

◆ CreateTriMesh() [2/2]

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: