This article's documentation is for anything that uses the Source engine. Click here for more information.

Simple physics prop: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (removed {{DISPLAYTITLE}}, covered by the base point template)
m (Classifying as model entity)
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{stub}}
{{ent not in fgd|codeonly=1}}
{{ent not in fgd}}
{{CD|CSimplePhysicsProp|file1=physobj.cpp}}
{{base point|simple_physics_prop}}
{{this is a|model entity|name=simple_physics_prop}} It is a simple physics prop with no unique properties. Model-based entities converted by {{ent|phys_convert}} are turned into this entity. Doesn't have any physics when spawned by other means. This is also used for objects being dissolved by a {{ent|trigger_portal_cleanser}}.


==Entity Description==
{{note|If placed manually using Hammer, the entity will spawn suspended in mid-air and without any solidity. If you want physical prop use phys_convert on a {{ent|prop_dynamic}}, or just use a {{ent|prop_physics}}.}}
A simple physics prop with no unique properties. Model-based entities converted by [[phys_convert]] are turned into this entity. Doesn't have any physics when spawned by other means.


==FGD Code==
==See also==
{{warning|This entity is not designed to be directly used in Hammer and will spawn suspended in mid-air and without any solidity. 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 [[prop_dynamic]].}}
* {{ent|phys_convert}}
<pre>@PointClass base(Targetname, Angles, Studiomodel) studioprop() = simple_physics_prop
* {{ent|trigger_portal_cleanser}}
[
* {{ent|prop_physics}} - Conventional physics prop
]</pre>
* {{ent|simple_physics_brush}} - Brush counterpart
 
==Keyvalues==
{{KV Targetname}}
{{KV Studiomodel}}
 
==Inputs==
{{I Targetname}}
{{I Studiomodel}}
 
==Outputs==
{{O Targetname}}
{{O Studiomodel}}
 
==See Also==
* [[prop_physics]] - Conventional physics prop
* [[simple_physics_brush]] - Brush counterpart

Latest revision as of 04:34, 19 May 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code.
C++ Class hierarchy
CSimplePhysicsProp
CBaseProp
CBaseAnimating
CBaseEntity
C++ physobj.cpp

simple_physics_prop is a model entity available in all Source Source games. It is a simple physics prop with no unique properties. Model-based entities converted by phys_convert are turned into this entity. Doesn't have any physics when spawned by other means. This is also used for objects being dissolved by a trigger_portal_cleanser.

Note.pngNote:If placed manually using Hammer, the entity will spawn suspended in mid-air and without any solidity. If you want physical prop use phys_convert on a prop_dynamic, or just use a prop_physics.

See also