API ReferenceSandbox
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.
Related Guides
Broader workflow and conceptual references connected to this API.
Constructors
Showing 1 constructors
public HammerMesh()
No results match this filter.
Methods
Showing 2 methods
protected virtual void OnDisabled()
protected virtual void OnEnabled()
No results match this filter.
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 Sandbox.ModelRenderer.ShadowRenderType Sandbox.HammerMesh.RenderType { get; set; }
public bool Sandbox.HammerMesh.Static { get; set; }
public Sandbox.Surface Sandbox.HammerMesh.Surface { 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 Color Sandbox.HammerMesh.Tint { get; set; }
public bool Sandbox.HammerMesh.UseCollision { get; set; }
public bool Sandbox.HammerMesh.UseRenderer { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.HammerMesh |