# Scanning motion behaving unexpectedly

**URL:** <https://forums.unrealengine.com/t/scanning-motion-behaving-unexpectedly/2585889>\
**Category:** Blueprint\
**Tags:** interpolation, unreal-engine, question, Blueprint\
**Created:** [June 30, 2025, 11:20pm UTC](https://forums.unrealengine.com/t/scanning-motion-behaving-unexpectedly/2585889 "2025-06-30T23:20:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweeetjd](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sweeetjd/32/782492_2.png) [@sweeetjd](https://forums.unrealengine.com/u/sweeetjd)\
**Post date:** [June 30, 2025, 11:20pm UTC](https://forums.unrealengine.com/t/scanning-motion-behaving-unexpectedly/2585889/1 "2025-06-30T23:20:14Z")

</div>

I’m making a security camera that scans back and forth.

When testing, I have two points below the camera on either side. The camera will scan back and forth between these points, but for some reason pitches up to 0 when returning to the first point, and back down to -14 when moving to the second point. I would’ve expected a pitch of around -14 since both points are below the camera. What’s going on here?

 ![Screenshot 2025-06-30 161352](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/d/3fd1e4a69604d240b8bc153627419736b35e3587.jpeg)

---

<div class="post-metadata">

**Author:** ![sweeetjd](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sweeetjd/32/782492_2.png) [@sweeetjd](https://forums.unrealengine.com/u/sweeetjd)\
**Post date:** [July 2, 2025, 9:58pm UTC](https://forums.unrealengine.com/t/scanning-motion-behaving-unexpectedly/2585889/2 "2025-07-02T21:58:16Z")

</div>

The problem was coming from the fact that arrays start counting at [0] but I was using [1] as my first point.

The solution is to subtract 1 from the Look at Points Length node and plug that into the \> node. Then if that returns true, set the Current Look at Point to 0 instead of 1.
