Simple physics brush: Difference between revisions
Jump to navigation
Jump to search
Warning:This entity is not designed to be directly used in Hammer and will spawn suspended in mid-air. There is no known way to fix this outside of modifying the code and you would most likely be better off using a phys_convert on a func_brush.
(Filled in page) |
(Emphasized the fact this is broken when used in Hammer) |
||
Line 8: | Line 8: | ||
==FGD Code== | ==FGD Code== | ||
{{warning|This entity is not designed to be directly used in Hammer and will spawn suspended in mid-air. There is no known way to fix this outside of modifying the code and you would most likely be better off using a phys_convert on a [[func_brush]].}} | |||
<pre>@SolidClass base(Targetname, Parentname) = simple_physics_brush | <pre>@SolidClass base(Targetname, Parentname) = simple_physics_brush | ||
[ | [ |
Revision as of 10:11, 21 October 2017
Entity description
A simple physics brush with no unique properties. Brush entities converted by phys_convert are turned into this entity. Doesn't have any physics when spawned by other means.
FGD Code

@SolidClass base(Targetname, Parentname) = simple_physics_brush [ ]
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Parentname:
- Parent (parentname) <targetname>
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Inputs
Parentname:
- SetParent <string >
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <string >
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- SetParentAttachmentMaintainOffset <string >
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- ClearParent
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
Outputs
See Also
- func_physbox - Conventional physics brush
- simple_physics_prop - Prop counterpart