Unreal Engine – Physics Based Mesh Placement UE6403

You can make physics based meshes placement on scene in few simple steps:

  1. Drag BP_PhysSpawnerVolume on scene
  2. Change settings as you want and hit “Fill volume” button in actor’s detail tab
  3. Hit Play->Simulate and wait while physics simulation is going on
  4. Press “Save objects” in actor’s details tab and stop playing in editor
  5. Select volume again and hit “Load objects” buttons to place meshes on scene. Few additional buttons allow you to convert loaded meshes to ISM instances (you can work with them before it (change transform)) or load them as ISM instances directly.
  6. This BP can use two meshes – one with accurate collision (for best physics simulation) and one with optimised collision (will replace prev. mesh).

Check video tutorial to see how it works

Video

https://www.youtube.com/watch?v=dWsx_qFYK-g&feature=youtu.be

技术细节

Features:

  • Spawning meshes in box volume with various settings;
  • Saving meshes data from UE4 physics simulation (Play->Simulate) and loading it when working in editor;
  • Ability to load meshes on scene after physics simulation to work with them (can be loaded as separate static meshes or instances);
  • In BP_PhysSpawnerVolume you can set 2 references for each static mesh: one with accurate collision (will be used for phys. simulation), and one with optimised collision (will be placed on scene after loading static meshes after phys. simulation). Use this option if you want, BP works even with 1 reference to each SM

Number of Blueprints: 6 (volume generator, save game BP and tutorial actors).

Number of meshes: 10

Number of materials: 4

Number of textures: 1

Maps: 1 overview map with detailed tutorial

Supported Development Platforms: Windows PC, Mac, Consoles.

Supported Target Build Platforms: Windows PC, Mac, Consoles.

Documentation: you can find detailed documentation and tutorial in overview map.

Important/Additional Notes: Setting the spawn distance in BP_PhysSpawnerVolume too low can result in serious performance issues.