DayZ 1.24
Loading...
Searching...
No Matches
Constraints API definition
Collaboration diagram for Constraints API definition:

Classes

class  Contact
 

Typedefs

typedef int[] dMaterial
 

Functions

void PhysicsGeomDef::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::Contact ()
 
void Contact::~Contact ()
 
proto native vector Contact::GetNormalImpulse ()
 
proto native float Contact::GetRelativeVelocityBefore (vector vel)
 
proto native float Contact::GetRelativeVelocityAfter (vector vel)
 

Variables

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

Detailed Description

Typedef Documentation

◆ dMaterial

Definition at line 298 of file EnPhysics.c.

Function Documentation

◆ Contact()

void Contact::Contact ( )
inlineprivate

Definition at line 302 of file EnPhysics.c.

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 Contact::GetNormalImpulse ( )
private

◆ GetRelativeVelocityAfter()

proto native float Contact::GetRelativeVelocityAfter ( vector vel)
private

◆ GetRelativeVelocityBefore()

proto native float Contact::GetRelativeVelocityBefore ( vector vel)
private

◆ PhysicsGeomDef()

void PhysicsGeomDef::PhysicsGeomDef ( string name,
dGeom geom,
string materialName,
int layerMask )
inlineprivate

Definition at line 41 of file EnPhysics.c.

42 {
43 Name = name;
44 Geometry = geom;
47 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
string MaterialName
Definition EnPhysics.c:37

References PhysicsGeomDef::Geometry, PhysicsGeomDef::LayerMask, PhysicsGeomDef::MaterialName, PhysicsGeomDef::Name, and name.

◆ ~Contact()

void Contact::~Contact ( )
inlineprivate

Definition at line 303 of file EnPhysics.c.

303{}

Variable Documentation

◆ Frame

vector PhysicsGeomDef::Frame[4] = {Vector(1, 0, 0), Vector(0, 1, 0), Vector(0, 0, 1), Vector(0, 0, 0)}
private

Definition at line 35 of file EnPhysics.c.

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 PhysicsGeomDef::Geometry
private

Definition at line 34 of file EnPhysics.c.

Referenced by PhysicsGeomDef::PhysicsGeomDef().

◆ Impulse

float Contact::Impulse
private

Definition at line 314 of file EnPhysics.c.

◆ Index1

int Contact::Index1
private

Definition at line 309 of file EnPhysics.c.

◆ Index2

int Contact::Index2
private

Definition at line 310 of file EnPhysics.c.

◆ LayerMask

int PhysicsGeomDef::LayerMask
private

Definition at line 38 of file EnPhysics.c.

Referenced by PhysicsGeomDef::PhysicsGeomDef().

◆ Material1

dMaterial Contact::Material1
private

Definition at line 305 of file EnPhysics.c.

◆ Material2

dMaterial Contact::Material2
private

Definition at line 306 of file EnPhysics.c.

◆ MaterialIndex1

int Contact::MaterialIndex1
private

Definition at line 307 of file EnPhysics.c.

◆ MaterialIndex2

int Contact::MaterialIndex2
private

Definition at line 308 of file EnPhysics.c.

◆ MaterialName

string PhysicsGeomDef::MaterialName
private

Definition at line 37 of file EnPhysics.c.

Referenced by PhysicsGeomDef::PhysicsGeomDef().

◆ Name

string PhysicsGeomDef::Name
private

Definition at line 33 of file EnPhysics.c.

Referenced by PhysicsGeomDef::PhysicsGeomDef().

◆ Normal

vector Contact::Normal
private

Definition at line 318 of file EnPhysics.c.

◆ ParentNode

int PhysicsGeomDef::ParentNode = -1
private

Definition at line 36 of file EnPhysics.c.

◆ PenetrationDepth

float Contact::PenetrationDepth
private

Definition at line 312 of file EnPhysics.c.

◆ Position

vector Contact::Position
private

Definition at line 319 of file EnPhysics.c.

◆ RelativeNormalVelocityAfter

float Contact::RelativeNormalVelocityAfter
private

Definition at line 316 of file EnPhysics.c.

◆ RelativeNormalVelocityBefore

float Contact::RelativeNormalVelocityBefore
private

Definition at line 315 of file EnPhysics.c.

◆ RelativeVelocityAfter

vector Contact::RelativeVelocityAfter
private

Definition at line 321 of file EnPhysics.c.

◆ RelativeVelocityBefore

vector Contact::RelativeVelocityBefore
private

Definition at line 320 of file EnPhysics.c.