API ReferenceSandbox
HammerMeshclass
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.
Constructors1
Showing 1 constructors
public HammerMesh()
No results match this filter.
Methods2
Showing 2 methods
protected virtual void OnDisabled()
Returns:
void—protected virtual void OnEnabled()
Returns:
void—No results match this filter.
Properties12
Showing 12 properties
public System.Nullable`1<float> Sandbox.HammerMesh.Friction { get; set; }
Returns:
Nullable<float>—public bool Sandbox.HammerMesh.IsTrigger { get; set; }
Returns:
bool—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; }
Returns:
bool—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; }
Returns:
bool—public bool Sandbox.HammerMesh.UseRenderer { get; set; }
Returns:
bool—No results match this filter.