s&box docs

public class Sandbox.HammerMesh : Sandbox.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.

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 2 methods

protected virtual void OnDisabled()

protected virtual void OnEnabled()

Properties

Showing 12 properties

public System.Nullable`1<float> Sandbox.HammerMesh.Friction { get; set; }

public bool Sandbox.HammerMesh.IsTrigger { get; set; }

public Sandbox.Model Sandbox.HammerMesh.Model { get; set; }

Gets populated at compile time, will be valid when loading from compiled map

public System.Action`1<Sandbox.Collider> Sandbox.HammerMesh.OnTriggerEnter { get; set; }

Called when a collider enters this trigger

public System.Action`1<Sandbox.Collider> Sandbox.HammerMesh.OnTriggerExit { get; set; }

Called when a collider exits this trigger

public bool Sandbox.HammerMesh.Static { get; set; }

public Vector3 Sandbox.HammerMesh.SurfaceVelocity { get; set; }

Set the local velocity of the surface so things can slide along it, like a conveyor belt

public bool Sandbox.HammerMesh.UseCollision { get; set; }

public bool Sandbox.HammerMesh.UseRenderer { get; set; }

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.HammerMesh

On this page