Regular API function

simSetIkElementProperties

Description Sets properties of a specific inverse kinematics element (IK element). See also simSetIkGroupProperties and simGetIkGroupHandle.
C synopsis simInt simSetIkElementProperties(simInt ikGroupHandle,simInt tipDummyHandle,simInt constraints,const simFloat* precision,const simFloat* weight,void* reserved)
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 NULL to keep current settings.
weight: an array of two values that represent the linear and angular resolution weights. Can be NULL to keep current settings.
reserved: reserved for future extensions. Keep at NULL
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=simSetIkElementProperties(number ikGroupHandle,number tipDummyHandle,number constraints,table_2 precision=nil,table_2 weight=nil
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page