Regular API function

simSetIkElementProperties / sim.setIkElementProperties

Description
Deprecated. Use the kinematic plugin functionality instead.

Sets properties of a specific IK element.
C/C++
synopsis
int simSetIkElementProperties(int ikGroupHandle,int tipDummyHandle,int constraints,const double* precision,const double* weight,void* reserved)
C/C++
parameters
ikGroupHandle: handle of the IK group that contains the IK element to modify
tipDummyHandle: handle of the tip dummy object of the IK element
constraints: the constraints of the ik element. sim.ik_avoidance_constraint is not allowed
precision: an array of two values where the first represents the linear precision, and the second the angular precision. Can be nullptr to keep current settings.
weight: an array of two values that represent the linear and angular resolution weights. Can be nullptr to keep current settings.
reserved: reserved for future extensions. Keep at nullptr
C/C++
return value
-1 if operation was not successful
Lua
synopsis
sim.setIkElementProperties(int ikGroupHandle,int tipDummyHandle,int constraints,float[2] precision=nil,float[2] weight=nil
Lua
parameters
Similar to the C-function counterpart
Lua
return values