Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Constraints API definition

Структуры данных

class  Contact
 

Определения типов

typedef int[] dMaterial
 

Функции

void PhysicsGeomDef (string name, dGeom geom, string materialName, int layerMask)
 
proto native dJoint dJointCreateHinge (notnull IEntity ent1, notnull IEntity ent2, vector point1, vector axis1, vector point2, vector axis2, bool block, float breakThreshold)
 
proto native dJoint dJointCreateHinge2 (notnull IEntity ent1, notnull IEntity ent2, vector matrix1[4], vector matrix2[4], bool block, float breakThreshold)
 
proto native dJoint dJointCreateSlider (notnull IEntity ent1, notnull IEntity ent2, vector matrix1[4], vector matrix2[4], bool block, float breakThreshold)
 
proto native dJoint dJointCreateBallSocket (notnull IEntity ent1, notnull IEntity ent2, vector point1, vector point2, bool block, float breakThreshold)
 
proto native dJoint dJointCreateFixed (notnull IEntity ent1, notnull IEntity ent2, vector point1, vector point2, bool block, float breakThreshold)
 
proto native dJoint dJointCreateConeTwist (notnull IEntity ent1, notnull IEntity ent2, vector matrix1[4], vector matrix2[4], bool block, float breakThreshold)
 
proto native dJoint dJointCreate6DOF (notnull IEntity ent1, notnull IEntity ent2, vector matrix1[4], vector matrix2[4], bool block, float breakThreshold)
 
proto native dJoint dJointCreate6DOFSpring (notnull IEntity ent1, notnull IEntity ent2, vector matrix1[4], vector matrix2[4], bool block, float breakThreshold)
 
proto native void dJointDestroy (dJoint joint)
 
proto native void dJointHingeSetLimits (dJoint joint, float low, float high, float softness, float biasFactor, float relaxationFactor)
 
proto native void dJointHingeSetAxis (dJoint joint, vector axis)
 
proto native void dJointHingeSetMotorTargetAngle (dJoint joint, float angle, float dt, float maxImpulse)
 
proto native void dJointConeTwistSetAngularOnly (dJoint joint, bool angularOnly)
 
proto native void dJointConeTwistSetLimit (dJoint joint, int limitIndex, float limitValue)
 
proto native void dJointConeTwistSetLimits (dJoint joint, float _swingSpan1, float _swingSpan2, float _twistSpan, float _softness, float _biasFactor, float _relaxationFactor)
 
proto native void dJoint6DOFSetLinearLimits (dJoint joint, vector linearLower, vector linearUpper)
 
proto native void dJoint6DOFSetAngularLimits (dJoint joint, vector angularLower, vector angularUpper)
 
proto native void dJoint6DOFSetLimit (dJoint joint, int axis, float lo, float hi)
 
proto native void dJoint6DOFSpringSetSpring (dJoint joint, int axis, float stiffness, float damping)
 
proto native void dJointSliderSetLinearLimits (dJoint joint, float lowerLimit, float upperLimit)
 
proto native void dJointSliderSetAngularLimits (dJoint joint, float lowerLimit, float upperLimit)
 
proto native void dJointSliderSetDirLinear (dJoint joint, float softness, float restitution, float damping)
 
proto native void dJointSliderSetDirAngular (dJoint joint, float softness, float restitution, float damping)
 
proto native void dJointSliderSetLimLinear (dJoint joint, float softness, float restitution, float damping)
 
proto native void dJointSliderSetLimAngular (dJoint joint, float softness, float restitution, float damping)
 
proto native void dJointSliderSetOrthoLinear (dJoint joint, float softness, float restitution, float damping)
 
proto native void dJointSliderSetOrthoAngular (dJoint joint, float softness, float restitution, float damping)
 
proto native void dJointSliderSetLinearMotor (dJoint joint, float velocity, float force)
 
proto native void dJointSliderSetAngularMotor (dJoint joint, float velocity, float force)
 
proto native float dJointSliderGetLinearPos (dJoint joint)
 
proto native float dJointSliderGetAngularPos (dJoint joint)
 
void Contact ()
 
void ~Contact ()
 
proto native vector GetNormalImpulse ()
 
proto native float GetRelativeVelocityBefore (vector vel)
 
proto native float GetRelativeVelocityAfter (vector vel)
 

Переменные

string Name
 
dGeom Geometry
 
vector Frame [4] = {Vector(1, 0, 0), Vector(0, 1, 0), Vector(0, 0, 1), Vector(0, 0, 0)}
 
int ParentNode = -1
 
string MaterialName
 
int LayerMask
 
dMaterial Material1
 
dMaterial Material2
 
int MaterialIndex1
 
int MaterialIndex2
 
int Index1
 
int Index2
 
float PenetrationDepth
 
float Impulse
 
float RelativeNormalVelocityBefore
 
float RelativeNormalVelocityAfter
 
vector Normal
 
vector Position
 
vector RelativeVelocityBefore
 
vector RelativeVelocityAfter
 

Подробное описание

Типы

◆ dMaterial

Функции

◆ Contact()

void Contact ( )
inlineprivate
302{}

◆ dJoint6DOFSetAngularLimits()

proto native void dJoint6DOFSetAngularLimits ( dJoint joint,
vector angularLower,
vector angularUpper )

◆ dJoint6DOFSetLimit()

proto native void dJoint6DOFSetLimit ( dJoint joint,
int axis,
float lo,
float hi )

◆ dJoint6DOFSetLinearLimits()

proto native void dJoint6DOFSetLinearLimits ( dJoint joint,
vector linearLower,
vector linearUpper )
  • free means upper < lower,
  • locked means upper == lower
  • limited means upper > lower
  • axis: first 3 are linear, next 3 are angular

◆ dJoint6DOFSpringSetSpring()

proto native void dJoint6DOFSpringSetSpring ( dJoint joint,
int axis,
float stiffness,
float damping )

◆ dJointConeTwistSetAngularOnly()

proto native void dJointConeTwistSetAngularOnly ( dJoint joint,
bool angularOnly )

◆ dJointConeTwistSetLimit()

proto native void dJointConeTwistSetLimit ( dJoint joint,
int limitIndex,
float limitValue )

◆ dJointConeTwistSetLimits()

proto native void dJointConeTwistSetLimits ( dJoint joint,
float _swingSpan1,
float _swingSpan2,
float _twistSpan,
float _softness,
float _biasFactor,
float _relaxationFactor )

◆ dJointCreate6DOF()

proto native dJoint dJointCreate6DOF ( notnull IEntity ent1,
notnull IEntity ent2,
vector matrix1[4],
vector matrix2[4],
bool block,
float breakThreshold )

◆ dJointCreate6DOFSpring()

proto native dJoint dJointCreate6DOFSpring ( notnull IEntity ent1,
notnull IEntity ent2,
vector matrix1[4],
vector matrix2[4],
bool block,
float breakThreshold )

◆ dJointCreateBallSocket()

proto native dJoint dJointCreateBallSocket ( notnull IEntity ent1,
notnull IEntity ent2,
vector point1,
vector point2,
bool block,
float breakThreshold )

◆ dJointCreateConeTwist()

proto native dJoint dJointCreateConeTwist ( notnull IEntity ent1,
notnull IEntity ent2,
vector matrix1[4],
vector matrix2[4],
bool block,
float breakThreshold )

◆ dJointCreateFixed()

proto native dJoint dJointCreateFixed ( notnull IEntity ent1,
notnull IEntity ent2,
vector point1,
vector point2,
bool block,
float breakThreshold )

◆ dJointCreateHinge()

proto native dJoint dJointCreateHinge ( notnull IEntity ent1,
notnull IEntity ent2,
vector point1,
vector axis1,
vector point2,
vector axis2,
bool block,
float breakThreshold )

◆ dJointCreateHinge2()

proto native dJoint dJointCreateHinge2 ( notnull IEntity ent1,
notnull IEntity ent2,
vector matrix1[4],
vector matrix2[4],
bool block,
float breakThreshold )

◆ dJointCreateSlider()

proto native dJoint dJointCreateSlider ( notnull IEntity ent1,
notnull IEntity ent2,
vector matrix1[4],
vector matrix2[4],
bool block,
float breakThreshold )

◆ dJointDestroy()

proto native void dJointDestroy ( dJoint joint)

◆ dJointHingeSetAxis()

proto native void dJointHingeSetAxis ( dJoint joint,
vector axis )

◆ dJointHingeSetLimits()

proto native void dJointHingeSetLimits ( dJoint joint,
float low,
float high,
float softness,
float biasFactor,
float relaxationFactor )

◆ dJointHingeSetMotorTargetAngle()

proto native void dJointHingeSetMotorTargetAngle ( dJoint joint,
float angle,
float dt,
float maxImpulse )

◆ dJointSliderGetAngularPos()

proto native float dJointSliderGetAngularPos ( dJoint joint)

◆ dJointSliderGetLinearPos()

proto native float dJointSliderGetLinearPos ( dJoint joint)

◆ dJointSliderSetAngularLimits()

proto native void dJointSliderSetAngularLimits ( dJoint joint,
float lowerLimit,
float upperLimit )

◆ dJointSliderSetAngularMotor()

proto native void dJointSliderSetAngularMotor ( dJoint joint,
float velocity,
float force )

◆ dJointSliderSetDirAngular()

proto native void dJointSliderSetDirAngular ( dJoint joint,
float softness,
float restitution,
float damping )

◆ dJointSliderSetDirLinear()

proto native void dJointSliderSetDirLinear ( dJoint joint,
float softness,
float restitution,
float damping )

◆ dJointSliderSetLimAngular()

proto native void dJointSliderSetLimAngular ( dJoint joint,
float softness,
float restitution,
float damping )

◆ dJointSliderSetLimLinear()

proto native void dJointSliderSetLimLinear ( dJoint joint,
float softness,
float restitution,
float damping )

◆ dJointSliderSetLinearLimits()

proto native void dJointSliderSetLinearLimits ( dJoint joint,
float lowerLimit,
float upperLimit )

◆ dJointSliderSetLinearMotor()

proto native void dJointSliderSetLinearMotor ( dJoint joint,
float velocity,
float force )

◆ dJointSliderSetOrthoAngular()

proto native void dJointSliderSetOrthoAngular ( dJoint joint,
float softness,
float restitution,
float damping )

◆ dJointSliderSetOrthoLinear()

proto native void dJointSliderSetOrthoLinear ( dJoint joint,
float softness,
float restitution,
float damping )

◆ GetNormalImpulse()

proto native vector GetNormalImpulse ( )
private

◆ GetRelativeVelocityAfter()

proto native float GetRelativeVelocityAfter ( vector vel)
private

◆ GetRelativeVelocityBefore()

proto native float GetRelativeVelocityBefore ( vector vel)
private

◆ PhysicsGeomDef()

void PhysicsGeomDef ( string name,
dGeom geom,
string materialName,
int layerMask )
inlineprivate
42 {
43 Name = name;
44 Geometry = geom;
47 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Definition EntityAI.c:95
string Name
Definition EnPhysics.c:33
string MaterialName
Definition EnPhysics.c:37
int LayerMask
Definition EnPhysics.c:38
dGeom Geometry
Definition EnPhysics.c:34

Перекрестные ссылки PhysicsGeomDef::Geometry, PhysicsGeomDef::LayerMask, PhysicsGeomDef::MaterialName, PhysicsGeomDef::Name и name.

◆ ~Contact()

void ~Contact ( )
inlineprivate
303{}

Переменные

◆ Frame

vector Frame[4] = {Vector(1, 0, 0), Vector(0, 1, 0), Vector(0, 0, 1), Vector(0, 0, 0)}
private
35{Vector(1, 0, 0), Vector(0, 1, 0), Vector(0, 0, 1), Vector(0, 0, 0)};
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

◆ Geometry

dGeom Geometry
private

Используется в PhysicsGeomDef::PhysicsGeomDef().

◆ Impulse

float Impulse
private

◆ Index1

int Index1
private

◆ Index2

int Index2
private

◆ LayerMask

int LayerMask
private

Используется в PhysicsGeomDef::PhysicsGeomDef().

◆ Material1

dMaterial Material1
private

◆ Material2

dMaterial Material2
private

◆ MaterialIndex1

int MaterialIndex1
private

◆ MaterialIndex2

int MaterialIndex2
private

◆ MaterialName

string MaterialName
private

Используется в PhysicsGeomDef::PhysicsGeomDef().

◆ Name

string Name
private

Используется в PhysicsGeomDef::PhysicsGeomDef().

◆ Normal

vector Normal
private

◆ ParentNode

int ParentNode = -1
private

◆ PenetrationDepth

float PenetrationDepth
private

◆ Position

vector Position
private

◆ RelativeNormalVelocityAfter

float RelativeNormalVelocityAfter
private

◆ RelativeNormalVelocityBefore

float RelativeNormalVelocityBefore
private

◆ RelativeVelocityAfter

vector RelativeVelocityAfter
private

◆ RelativeVelocityBefore

vector RelativeVelocityBefore
private