Some object can be pushed around to unveil hidden items or to act as a weights.

Simple Pushable

To start creating a pushable object, use as a base the prefab Pushable, located in HorrorEngine/Prefabs.

Untitled

Add any visuals you want as a children of this object. For example, a bookshelf, a crate, a cupboard, etc…

It is recommended you keep the object pivot (where the yellow cross is) at a ground level, so the pushable visuals should always be above it.

<aside> ⚠️ Please make sure your object visuals (crate, cupboard, bookshelf, etc..) has a collider and is set to the use the Default layer or it’ll fall through the ground.

</aside>

Make sure size of the NavMeshObstacle and the BoxCollider at the top match the size of the visuals and ideally that the visuals collider is smaller than both.

On the Pushable component, you can set in which axes this pushable can be pushed in. By default, the pushable can be pushed in two axes: Right and Forward.

Untitled

Additionally, the sounds this pushable make when pushed can also be set on the component.

Simple Pushable with weight