Moving an object onto the mouse position

Code

orxVECTOR mousePosition = orxVECTOR_0;
 
orxMouse_GetPosition(&mousePosition);
orxRender_GetWorldPosition(&mousePosition, orxNULL, &mousePosition);
 
mousePosition.fZ = 0;
 
orxObject_SetPosition(someObject, &mousePosition);