Add build-mode toggle and grid-snap raycast on BP_PlayerCharacter
B key toggles bBuildMode. While active, Tick line-traces from the character's eye height along its forward vector, breaks the hit result, and snaps the impact point to a 200-unit grid via Vector_SnappedToGrid, storing the result in SnappedLocation. No visual feedback or placement yet (next: ghost preview, then place/remove). Uses BreakHitResult (a multi-output-pin CallFunction on GameplayStatics) to extract struct fields, since a dedicated "BreakStruct" node type isn't supported by this tool -- works fine as a plain function call.
This commit is contained in:
BIN
Content/Blueprints/BP_PlayerCharacter.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/BP_PlayerCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user