Template Entity

Crate

A simple physics prop. A good example of a basic BasePhysicsProp.

Universal Inputs

These inputs are available on every entity in the engine, not just this one.

Name Parameter Description
GetValue String Reads the named exposed value from this entity and injects it into the pass variable pool. See Advanced Outputs for details.
AddVelocity x,y,z Adds the given vector to the entity's current velocity.
SetVelocity x,y,z Sets the entity's velocity to the given vector, discarding any current velocity.
SetPosition x,y,z Teleports the entity to the given world position.
SetScale x,y,z Sets the entity's scale.
SetRotation x,y,z Sets the entity's rotation from Euler angles in degrees.
AddImpulse x,y,z Applies an instantaneous physics impulse to the entity.
Destroy Despawns this entity on the next frame.

Notes

Crate is a physics prop from the FPS template. It uses BasePhysicsProp as its controller, which handles rendering, shadow casting, impact particles, and being knocked around by bullet hits. When hit, the crate is pushed by an impulse in the direction of the attacker.

It’s a straightforward example of how to set up a physics prop entity and a good starting point for creating your own. The source lives in FPSTemplate/Entities/Crate.cs.

This is a template entity — it’s defined in the FPS template project, not the engine. You can modify or delete it freely.