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

◆ CreateHinge() [2/2]

static proto PhysicsHingeJoint PhysicsJoint::CreateHinge ( notnull IEntity ent1,
IEntity ent2,
vector point1,
vector axis1,
vector point2,
vector axis2,
bool disableCollisions,
float breakThreshold = -1 )
staticprivate

Creates hinge joint. Entities must be dynamic objects. Using only ent1 anchors it to the world.

IEntity entity1 = GetWorld().FindEntityByName("entity1");
IEntity entity2 = GetWorld().FindEntityByName("entity1");
PhysicsJoint.CreateHinge(entity1, entity2, vector.Right, vector.Up, -vector.Right, vector.Up, false);
Определения EnEntity.c:165
static proto PhysicsHingeJoint CreateHinge(notnull IEntity ent1, IEntity ent2, vector point1, vector axis1, vector point2, vector axis2, bool disableCollisions, float breakThreshold=-1)
Определения PhysicsJoint.c:23
static const vector Up
Определения EnConvert.c:120
Определения EnConvert.c:119
Аргументы
ent1Entity that will be part of the joint, mandatory
ent2Other entity that will be part of the joint, optional
point1Joint position in reference frame of ent1
axis1Joint axis in reference frame of ent1
point2Joint position in reference frame of ent2
axis2Joint axis in reference frame of ent2
disableCollisionsTrue to disable collisions between connected entities
breakThresholdMaximum impulse to break the joint. Use -1 for unbreakable joint