DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ AddGeom() [2/2]

proto external int Physics::AddGeom ( string name,
PhysicsGeom geom,
vector frame[4],
string material,
int interactionLayer )
private

Adds new geometry and returns an index of the geometry or -1 when an error occurred

vector frame[4];
frame[3] = vector.Up;
string material = "{D745FD8FC67DB26A}Common/Materials/Game/stone.gamemat";
GetPhysics().AddGeom("Box", geom, frame, material, 0xffffffff);
Определения EnMath3D.c:28
static proto PhysicsGeom CreateBox(vector size)
Определения PhysicsGeom.c:12
static const vector Up
Определения EnConvert.c:120
Определения EnConvert.c:119
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static void MatrixIdentity4(out vector mat[4])
Creates identity matrix.
Определения EnMath3D.c:256
Аргументы
nameName of the element
geomPhysics geometry shape
frameLocal transformation
materialMaterial resource name
interactionLayerBit mask of layers geometry belongs to