# Ray/Sweep fails only when spawning from PlayerStart

**URL:** <https://forums.unrealengine.com/t/ray-sweep-fails-only-when-spawning-from-playerstart/445164>\
**Category:** World Creation\
**Tags:** Raycast, unreal-engine, playerstart, Collision, editor, packaging-projects, question\
**Created:** [March 12, 2019, 3:29pm UTC](https://forums.unrealengine.com/t/ray-sweep-fails-only-when-spawning-from-playerstart/445164 "2019-03-12T15:29:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a560dd89](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a560dd89](https://forums.unrealengine.com/u/anonymous_user_a560dd89)\
**Post date:** [March 12, 2019, 3:29pm UTC](https://forums.unrealengine.com/t/ray-sweep-fails-only-when-spawning-from-playerstart/445164/1 "2019-03-12T15:29:03Z")

</div>

I have a Pawn which can spawn from a player start, this pawn performs a standard sweep which I will paste below. This sweep happens every tick and the hit results are used for further code. My problem is that the sweep does not return a hit, but this is only when run from PlayerStart/Play From Here. placing the same pawn around the scene and simulating or even running the game will return a hit, oddly when I eject from the pawn and just click it at runtime will work, I can then repossess the pawn and carry on as normal.

This is very irritating as I have no clue what could possibly be missing when a player start is involved. I am assuming the problem is related to something I am not aware of with how the engine sets up a player start. I may be missing something simple, so I apologize if the question is answered elsewhere (I have not found help in the docs).

(edit) forgot to add in the sweep snippet

```
	bool Hit = GetWorld()->SweepSingleByObjectType(
		_hitOut,
		_transform.GetTranslation(),
		_transform.GetTranslation() + Direction * Distance,
		FQuat(1, 0, 0, 1),
		collisionObjParams,
		FCollisionShape::MakeSphere(Radius),
		collisionQueryParams);

```
