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

◆ dBodyCreateStaticEx()

proto bool dBodyCreateStaticEx ( notnull IEntity ent,
PhysicsGeomDef geoms[] )

Creates RigidBody from custom made geometries. The geometries are deleted when rigid body is destroyed

Аргументы
geomsarray of custom made geometries
autoptr PhysicsGeomDef geoms[] = {PhysicsGeomDef("", dGeomCreateBox(size), "material/default", 0xffffffff)};
dBodyCreateStaticEx(this, geoms);
Определения PhysicsGeomDef.c:10
proto native dGeom dGeomCreateBox(vector size)
Creates box geometry.
proto bool dBodyCreateStaticEx(notnull IEntity ent, PhysicsGeomDef geoms[])