UE4 – Enable complex collision for models

Software:
Unreal Engine 4.21

By default UE4 uses fast simplified convex collision shapes to calculate collision for static mesh actors.
This means that the player or projectiles wont be able to path through holes, openings or doors in the model.

To set complex (concave) collision for a static mesh model:

In Static Mesh editing window, in the details pane, under Collision:
Set Collision Complexity to: Use Complex Collision As Simple

Static_Mesh_Complex_Collision.jpg

This example shows the default behavior for a model that has an opening, neither the projectiles nor the player can pass:

Simple_Collision.gif

In this example collision for the model was set to Use Complex Collision As Simple:

Complex_Collision.gif

 

Advertisements

Vector Parameters in the UE4 Material Blueprint

Software:
Unreal Engine 4.18

UE4 Material Blueprint Numerical Vector Parameters / Constants and Colors are one and the same, which makes perfects sense, since in computer graphics colors are in fact 3D vectors, RGB quantities being equivalent to XYZ spatial dimensions (4D with an Alpha channel)

But take note that when setting the Vector values in the color picker you can’t set negative values, and when doing so through the Details window in Default Value you can.

* You can create 3D Vector Constants by clicking the background while pressing 3

Untitled-2.jpg