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

◆ CreateStaticEx() [2/2]

static proto Physics Physics::CreateStaticEx ( notnull IEntity ent,
PhysicsGeomDef geoms[] )
staticprivate

Creates a static physics body from custom made geometries. The geometries are deleted when rigid body is destroyed.

string material = "{D745FD8FC67DB26A}Common/Materials/Game/stone.gamemat";
PhysicsGeomDef geoms[] = { PhysisGeomDef("Box", geom, material, 0xffffffff) };
Physics.CreateStaticEx(this, geoms);
static proto Physics CreateStaticEx(notnull IEntity ent, PhysicsGeomDef geoms[])
static proto PhysicsGeom CreateBox(vector size)
Определения PhysicsGeomDef.c:10
Определения PhysicsGeom.c:12
Определения Physics.c:17
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
Аргументы
entEntity that will be associated with the physics body
geomsArray of custom made geometries