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

◆ CreateBallSocket() [2/2]

static proto PhysicsBallSocketJoint PhysicsJoint::CreateBallSocket ( notnull IEntity ent1,
IEntity ent2,
vector point1,
vector point2,
bool disableCollisions,
float breakThreshold = -1 )
staticprivate

Creates ball socket 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.CreateBallSocket(entity1, entity2, vector.Right, -vector.Right, false);
Определения EnEntity.c:165
static proto PhysicsBallSocketJoint CreateBallSocket(notnull IEntity ent1, IEntity ent2, vector point1, vector point2, bool disableCollisions, float breakThreshold=-1)
Определения PhysicsJoint.c:23
Определения 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
point2Joint position in reference frame of ent2
disableCollisionsTrue to disable collisions between connected entities
breakThresholdMaximum impulse to break the joint. Use -1 for unbreakable joint