# Niagara - Particle distance to camera?

**URL:** <https://forums.unrealengine.com/t/niagara-particle-distance-to-camera/113654>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [July 16, 2018, 4:51am UTC](https://forums.unrealengine.com/t/niagara-particle-distance-to-camera/113654 "2018-07-16T04:51:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wilberolive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wilberolive](https://forums.unrealengine.com/u/wilberolive)\
**Post date:** [July 16, 2018, 4:51am UTC](https://forums.unrealengine.com/t/niagara-particle-distance-to-camera/113654/1 "2018-07-16T04:51:56Z")

</div>

Is there a way to adjust particles based on their distance to the camera? For example, I’m trying to get the particles to scale smaller as they get closer to the camera. I couldn’t find anything in the emitter or system level, so I’ve tried to implement a module for it, but I cannot find any node that will give me the location of the camera. Does this even exist yet or is there some other way to do it?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_04f32a061](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_04f32a061](https://forums.unrealengine.com/u/anonymous_user_04f32a061)\
**Post date:** [July 18, 2018, 11:13am UTC](https://forums.unrealengine.com/t/niagara-particle-distance-to-camera/113654/2 "2018-07-18T11:13:17Z")

</div>

First of all, I am not familiar with Niagara.

And concerning your problem perhaps a workaround: Your particle system uses a material, try adjusting this instead. The material editor has a node „CameraPosition[WS]“.

But you want to do it directly in Niagara, don’t you?

---

<div class="post-metadata">

**Author:** ![wilberolive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wilberolive](https://forums.unrealengine.com/u/wilberolive)\
**Post date:** [July 19, 2018, 12:39am UTC](https://forums.unrealengine.com/t/niagara-particle-distance-to-camera/113654/3 "2018-07-19T00:39:06Z")

</div>

Yeah, I ended up doing it in the material. I just assumed there would be a way to control particles based on the camera. I’m pretty sure I could in cascade, been a while so can’t remember though.

---

<div class="post-metadata">

**Author:** ![Shaun\_Kime](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shaun_kime/32/735096_2.png) [@Shaun\_Kime](https://forums.unrealengine.com/u/Shaun_Kime)\
**Post date:** [July 26, 2018, 9:05pm UTC](https://forums.unrealengine.com/t/niagara-particle-distance-to-camera/113654/4 "2018-07-26T21:05:47Z")

</div>

Adjust Particles.CameraOffset in your update script.
