cinimachine keeps moving after it hits confiner.

so visualy the CMvcam doesnt move when it hits the confiner collider. (ps im using 2d) but the coordinates do. this is an issue because i use the CMvcam to make an artificial paralax. how do i fix this issue

Is there no transform you can use that corresponds to the actual view that it is using? Based on what you report I imagine maybe it is clipping back to your bounds and driving some other transform, perhaps even the actual camera itself… could you maybe hook that for your coordinate needs??

well i tried attaching the parallax script to the actual camera but then it stoped working all together so i dont know how to fix it.

As usual, before you fix it, you gotta understand it! In this context it means “what’s moving, where it is, and what’s feeding into the parallax script’s inputs.”

To help gain more insight into your problem, I recommend liberally sprinkling Debug.Log() statements through your code to display information in realtime.

Doing this should help you answer these types of questions:

  • is this code even running? which parts are running? how often does it run?
  • what are the values of the variables involved? Are they initialized?

Knowing this information will help you reason about the behavior you are seeing.

ok thanks :slight_smile: ill do that and see how to fix it