pXcon_setparams1 (ENTITY* entity, VECTOR* vecParam1, VECTOR* vecParam2, VECTOR* vecParam3 ); |
pXcon_setparams2 (ENTITY* entity, VECTOR* vecParam4, VECTOR* vecParam5, VECTOR* vecParam6 ); |
Sets the parameters of a previously added constraint (cf. phcon_add ). The meaning of vecParam1. vecParam6 depends on the constraint type being used, please refer to the constraint list. Not all constraints require 6 parameters. If one parameter is not used, simply pass "nullvector" instead. If less than four parameters are required you can completely omit the phcon_setparams2 call. When setting angle/distance limits please note that the original position & orientation of the entities when calling phcon_add() is being used. Thus restricting a slider to move 100 quants refers to 100 quants from its original position. For angular values the original relative orientation is referred to as 0 degrees.
Parameters: |
entity |
entity of the constraint to be configured |
vecParam1..6 |
vectors with configuration information, such as position, orientation, stiffness, etc. |
Returns: |
1 if successful, 0 otherwise.
Speed: |
Fast
ENTITY* wheel;
pXcon_setparams1(wheel, wheel.x, nullvector, nullvector);