Api Sandbox HammerMesh
class

HammerMesh

public class HammerMesh : Component

Added automatically by Hammer to GameObjects that have a map mesh tied to them. When a map is compiled the Model property is populated by the generated model.

Constructors

HammerMesh()

Properties

Name Type Description
Model Model Gets populated at compile time, will be valid when loading from compiled map
UseRenderer Boolean
UseCollision Boolean
Tint Color
RenderType ShadowRenderType
Static Boolean
Friction Single?
Surface Surface
SurfaceVelocity Vector3 Set the local velocity of the surface so things can slide along it, like a conveyor belt
IsTrigger Boolean
OnTriggerEnter Action<Collider> Called when a collider enters this trigger
OnTriggerExit Action<Collider> Called when a collider exits this trigger
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.HammerMesh