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

◆ dBodyCreateDynamicEx()

proto bool dBodyCreateDynamicEx ( notnull IEntity ent,
vector centerOfMass,
float mass,
PhysicsGeomDef geoms[] )

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

Аргументы
centerOfMassOffset from object-pivot to center of mass
massBody mass
geomsarray of custom made geometries
autoptr PhysicsGeomDef geoms[] = {PhysicsGeomDef("", dGeomCreateBox(size), "material/default", 0xffffffff)};
dBodyCreateDynamicEx(this, center, 1.0, geoms);
Определения EnPhysics.c:32
proto native dGeom dGeomCreateBox(vector size)
Creates box geometry.
proto bool dBodyCreateDynamicEx(notnull IEntity ent, vector centerOfMass, float mass, PhysicsGeomDef geoms[])