Pick Actor - Cannot find pawn spawned from PlayerStart
Hello I'm new to UDK,
I want to be able to Touch the player pawn and drag it around. I followed Epic's example in their Mobile Input System document and it works for any of my custom pawns except the one spawned by the PlayerStart. When I touch one of the manually placed pawns, I get back its name. But when I touch the pawn spawned by the PlayerStart, I get back WorldInfo_3. I believe it is failing to find the actor at this line in the PickActor function:
PickedActor = Trace(HitLocation, HitNormal, TouchOrigin + (TouchDir * PickDistance), TouchOrigin, true);
I've searched for days trying to figure out the difference between the manually placed pawns and the PlayerStart pawn in relation to tracing it to find the touched object, but no luck. Any help is greatly appreciated, thanks.
Still searching for an answer to this issue. I did make some progress. Based on other thread discussions, I triggered the Pawn's death and then the PickActor function found the correct object instead of the WorldInfo object. This lead to other ideas that maybe it was the rigid body collision. But still no luck. I've included my PlayerController (minus the touch sample code from Epic) and my full Pawn code. Any ideas? Back to searching, if I figure out what I'm missing, I'll post back here. Thanks.
class BDG_PlayerController extends GamePlayerController;
... Epic's PickActor, HandleInputTouch and InitInputSystem mobile touch imput sample code here
class BDG_PlayerPawn extends MobilePlaceablePawn implements(ITouchable);
var StaticMeshComponent MyMesh;
function OnTouch(ETouchType Type, float X, float Y)
Begin Object Class=DynamicLightEnvironmentComponent Name=MyLightEnvironment2
Begin Object Class=StaticMeshComponent Name=PawnMesh2
Scale3D=(X=0.1, Y=0.1, Z=0.1)
I never did figure this issue out. I'm starting to think it is impossible to trace the pawn spawned from the PlayerStart navigation point. I'm going to instead ignore the PlayerStart and manually spawn my pawn to use.