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
centerOfMass | Offset from object-pivot to center of mass |
mass | Body mass |
geoms | array of custom made geometries autoptr PhysicsGeomDef geoms[] = {PhysicsGeomDef("", dGeomCreateBox(size), "material/default", 0xffffffff)};
dBodyCreateDynamicEx(this, center, 1.0, geoms);
Определения EnPhysics.c:32 proto bool dBodyCreateDynamicEx(notnull IEntity ent, vector centerOfMass, float mass, PhysicsGeomDef geoms[]) |