# vtkWorldPointPicker does not show updated world coordinates after a Spin (in plane rotation)

**URL:** <https://discourse.vtk.org/t/vtkworldpointpicker-does-not-show-updated-world-coordinates-after-a-spin-in-plane-rotation/12893>\
**Category:** Development\
**Tags:** code\
**Created:** [December 13, 2023, 8:38am UTC](https://discourse.vtk.org/t/vtkworldpointpicker-does-not-show-updated-world-coordinates-after-a-spin-in-plane-rotation/12893 "2023-12-13T08:38:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Namdhari](https://discourse.vtk.org/user_avatar/discourse.vtk.org/namdhari/32/6701_2.png) [@Namdhari](https://discourse.vtk.org/u/Namdhari)\
**Post date:** [December 13, 2023, 8:38am UTC](https://discourse.vtk.org/t/vtkworldpointpicker-does-not-show-updated-world-coordinates-after-a-spin-in-plane-rotation/12893/1 "2023-12-13T08:38:00Z")

</div>

Hello,

I am using `vtkWorldPointPicker` as follows:

```auto
auto world_point_picker = vtkWorldPointPicker::New();
world_point_picker->Pick(position_x, position_y, 0.0, this->CurrentRenderer);
auto picked_position = world_point_picker->GetPickPosition();

```

Where position\_x and position\_y a picked position in the screen space.

I have a custom class inherited from `vtkInteractorStyleTrackballCamera` where I have a custom rotation say: CustomRotate() method that uses a picked location as the rotation center somewhat like implemented in`vtkInteractorStyleUnicam`

I observed that if I do a Superclass::Spin() interaction, and then I do CustomRotate(), where I get the rotation center using `vtkWorldPointPicker` it keeps giving me the old value of the 3D world location as if no Spin() happened.

Here are the values:

 ![image](https://discourse.vtk.org/uploads/default/original/2X/b/bd6442d6b5bf034b30ca8d484a12957cdb7f6f49.png)

Please note the slight variation in vtkWorldPointPicker values is because I am trying to interactively pick at the same location after the Spin()

Corresponding picking snapshot of the application.

Original picked location:

 ![image](https://discourse.vtk.org/uploads/default/original/2X/2/2e8f51495f03ef73fd0fe05875d64091cf2ee008.png)

Picked location after in-plane rotation (Spin()):

 ![image](https://discourse.vtk.org/uploads/default/original/2X/7/7261bd765d3f498821ca5514af9942ebf695ea56.png)

Can someone tell me, how can I make the vtkWorldPointPicker() to give me the picked world location that also considers Spin() interaction?
