# Detect collision on spline path unreal engine4

**URL:** <https://forums.unrealengine.com/t/detect-collision-on-spline-path-unreal-engine4/471632>\
**Category:** World Creation\
**Tags:** path-follow, spline-mesh-componen, unreal-engine, Physics, Collision, question\
**Created:** [September 20, 2020, 8:16am UTC](https://forums.unrealengine.com/t/detect-collision-on-spline-path-unreal-engine4/471632 "2020-09-20T08:16:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_43a30ac4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43a30ac4](https://forums.unrealengine.com/u/anonymous_user_43a30ac4)\
**Post date:** [September 20, 2020, 8:16am UTC](https://forums.unrealengine.com/t/detect-collision-on-spline-path-unreal-engine4/471632/1 "2020-09-20T08:16:26Z")

</div>

How to enable collision if there is any static mesh place on spline path of player. I have create the spline path then i have placed some static mesh on path but my player pass through the static mesh. It is not detect any collision. I have followed [Unreal Engine 4 - Easy Character Spline Movement (Blueprints) + Gravity is unaffected :D - YouTube](https://www.youtube.com/watch?v=VJiTHlypTZQ&t=632s) tutorial for spline path.

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [September 20, 2020, 9:15am UTC](https://forums.unrealengine.com/t/detect-collision-on-spline-path-unreal-engine4/471632/2 "2020-09-20T09:15:21Z")

</div>

Assuming that you do have a collision mesh on your static mesh and that collision settings for object responses are correct, one pitfall might be if you are moving your static mesh along the spline with functions like SetActorTransform (having no Movement Component) you need to check the Sweep checkbox in order to get Hit Events fired.

Here’s a snippef from my code:

 ![314339-sweep.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/c/9cced15f824a6535f27a51860f1f2bcdf3babee7.png)

In my case, another problem was, that I used skeletal meshes, and it turned out, that these must be at root component level in addition.
