phcon_getposition (var constraint_ID, vecParam1 );
Retrieves the offset of a slider or rotation angle of the specified constraint. Keep in mind that the original position/ orientation when phcon_add() was called is 0 by default.
Parameters:
| constraint_id |
unique identifier of the constraint to be queried |
| vecParam1 |
vector to be set by Gamestudio |
Returns:
vecParam1 - vecParam1[0] will be set to the value of current position/angle
Remarks:
Speed:
Medium
Example:
phcon_getposition(constraint1, temp);
vec_set(you.x, temp) // set you Entity to Constraint Position
See also:
phcon_setparams
► latest
version online