# Why do my spawned characters fall through the map?

**URL:** <https://forums.unrealengine.com/t/why-do-my-spawned-characters-fall-through-the-map/483193>\
**Category:** Character & Animation\
**Tags:** spawn-actor-from-cla, unreal-engine, artificial-intellige, question\
**Created:** [May 10, 2021, 7:50pm UTC](https://forums.unrealengine.com/t/why-do-my-spawned-characters-fall-through-the-map/483193 "2021-05-10T19:50:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![twizkiddaxter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@twizkiddaxter](https://forums.unrealengine.com/u/twizkiddaxter)\
**Post date:** [May 10, 2021, 7:50pm UTC](https://forums.unrealengine.com/t/why-do-my-spawned-characters-fall-through-the-map/483193/1 "2021-05-10T19:50:02Z")

</div>

My Player Character has the ability to spawn four “clones” of itself with a key trigger. All clones spawn successfully except that atleast one of them falls through the map. That’s either falling through the floor or falling through a static mesh (eg. steps). I’m using the ThirdPerson Template map and my clones are exact copies of my Player Character’s collisions, mesh, etc save for having an AIController. I tried tweaking the collisions in the SpawActorFromClass node and that didn’t seem to help. Both the clone and Player Character’s MESH components are set to CharacterMesh. Below are the settings for the capsule components.  
alt text

 ![338479-clone-collision.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/e/6de245550f9540b2f2ad95e236be637a218dc05f.png)

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [May 11, 2021, 3:43pm UTC](https://forums.unrealengine.com/t/why-do-my-spawned-characters-fall-through-the-map/483193/2 "2021-05-11T15:43:23Z")

</div>

Hello! You can try to

- Tweak Physics settings in Project settings ([https://www.reddit.com/r/KerbalSpaceProgram/comments/1ruodr/max\_physics\_deltatime\_per\_frame\_setting/](https://www.reddit.com/r/KerbalSpaceProgram/comments/1ruodr/max_physics_deltatime_per_frame_setting/))
- Use CCD mode for capsules collision ([Set Use CCD | Unreal Engine Documentation](https://docs.unrealengine.com/en-US/BlueprintAPI/Physics/SetUseCCD/index.html))
- Check collision thickness of floor if you modelling it as plane or landscape ([Landscape Collision Guide | Unreal Engine Documentation](https://docs.unrealengine.com/en-US/BuildingWorlds/Landscape/Collision/index.html))

---

<div class="post-metadata">

**Author:** ![JohnKentFX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/johnkentfx/32/569534_2.png) [@JohnKentFX](https://forums.unrealengine.com/u/JohnKentFX)\
**Post date:** [May 11, 2021, 5:22pm UTC](https://forums.unrealengine.com/t/why-do-my-spawned-characters-fall-through-the-map/483193/3 "2021-05-11T17:22:32Z")

</div>

You’re spawning the characters in a spherical random location, thus you’re getting random values in Y as well. Guessing you have at least one clone that spawns below the floor ever so slightly.

You could try grabbing the Y position of your current player and explicitly overriding the Y with the position of the main character and then combining that with the X and Z values of the random position.

If your landscape is not flat within the specified radius of your random sphere location you would then need to figure out the proper height at whatever distance from your player character will be otherwise it will still fall through the floor.

---

<div class="post-metadata">

**Author:** ![twizkiddaxter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@twizkiddaxter](https://forums.unrealengine.com/u/twizkiddaxter)\
**Post date:** [May 11, 2021, 8:07pm UTC](https://forums.unrealengine.com/t/why-do-my-spawned-characters-fall-through-the-map/483193/4 "2021-05-11T20:07:12Z")

</div>

thank you! i have to try these out. will get back between now and tomorrow

---

<div class="post-metadata">

**Author:** ![twizkiddaxter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@twizkiddaxter](https://forums.unrealengine.com/u/twizkiddaxter)\
**Post date:** [May 11, 2021, 8:09pm UTC](https://forums.unrealengine.com/t/why-do-my-spawned-characters-fall-through-the-map/483193/5 "2021-05-11T20:09:00Z")

</div>

ha yes i actually have couple clones that spawn inside the stairs under me. when you say current player, do you mean the clone?

---

<div class="post-metadata">

**Author:** ![JohnKentFX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/johnkentfx/32/569534_2.png) [@JohnKentFX](https://forums.unrealengine.com/u/JohnKentFX)\
**Post date:** [May 11, 2021, 8:21pm UTC](https://forums.unrealengine.com/t/why-do-my-spawned-characters-fall-through-the-map/483193/6 "2021-05-11T20:21:04Z")

</div>

No, I mean you have the current actor location, you can use its Y position and then override the random’s Y position.

 ![338537-makevector.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/a/89a1eae73f13d18fa070324789d8c0c0d33d2fc2.jpeg)

---

<div class="post-metadata">

**Author:** ![twizkiddaxter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@twizkiddaxter](https://forums.unrealengine.com/u/twizkiddaxter)\
**Post date:** [May 11, 2021, 8:23pm UTC](https://forums.unrealengine.com/t/why-do-my-spawned-characters-fall-through-the-map/483193/7 "2021-05-11T20:23:22Z")

</div>

could you give me example code snippet?

---

<div class="post-metadata">

**Author:** ![twizkiddaxter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@twizkiddaxter](https://forums.unrealengine.com/u/twizkiddaxter)\
**Post date:** [May 11, 2021, 8:36pm UTC](https://forums.unrealengine.com/t/why-do-my-spawned-characters-fall-through-the-map/483193/8 "2021-05-11T20:36:19Z")

</div>

Hmm ok. this is my first time going further in depth with vectors. will try this in my code

---

<div class="post-metadata">

**Author:** ![Bob3DGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bob3DGames](https://forums.unrealengine.com/u/Bob3DGames)\
**Post date:** [May 11, 2021, 9:34pm UTC](https://forums.unrealengine.com/t/why-do-my-spawned-characters-fall-through-the-map/483193/9 "2021-05-11T21:34:16Z")

</div>

You could also try spawning them quite high and using a line trace straight down to find the floor then repositioning them at the hit location.

---

<div class="post-metadata">

**Author:** ![twizkiddaxter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@twizkiddaxter](https://forums.unrealengine.com/u/twizkiddaxter)\
**Post date:** [May 12, 2021, 3:41pm UTC](https://forums.unrealengine.com/t/why-do-my-spawned-characters-fall-through-the-map/483193/10 "2021-05-12T15:41:32Z")

</div>

that sounds even better. I don’t think I’ll need the line trace though. Only because when they spawn at a location they already naturally space themselves b/t eachother. I think it’s because I have RVO avoidance on. I def try to spawn them from above and see if that helps. Gracias

---

<div class="post-metadata">

**Author:** ![twizkiddaxter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@twizkiddaxter](https://forums.unrealengine.com/u/twizkiddaxter)\
**Post date:** [May 12, 2021, 8:08pm UTC](https://forums.unrealengine.com/t/why-do-my-spawned-characters-fall-through-the-map/483193/11 "2021-05-12T20:08:20Z")

</div>

Woo! Solved it. I offsetted my Clones’ locations from my Player’s so that my clones don’t spawn too far away nor right on top of them! They still spawn close to each other. Simple fix to my problem albeit not fancy! thanks for everyone’s help  
alt text
