Result = BodyPick(#Camera, Picked, x, y, Locked)
Simulates a mouse click and starts the manipulate the entity at the specified coordinate.


#Camera The camera to use.
Picked If #True, the picked body won't be released until a new function call with this parameter sets to #False. It can only have one picked body at the same time.
x, y The coordinates, in pixels, of the point.
Locked (optional) If sets to #True, the picked body won't be able to freely rotate when moving it. If sets to #False, the body will rotate freely according to body move.

Return value

The #Entity picked, or -1 if no entity are found at these coordinates.

Supported OS


<- AntialiasingMode() - Engine3D Index - ConvertLocalToWorldPosition() ->