Prop sphere: Difference between revisions
Jump to navigation
Jump to search
Tip:The only spherical model in Half-Life 2 is
Confirm:Not all prop_physics KVs are applicable to this entity. Changing modelscale for example seems to produce effects with the physics.
Bug:The collision mesh will not be visible with the vcollide_wireframe 1 command. [todo tested in ?]
(-added class hierarchy, cleanup) |
No edit summary |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{LanguageBar}} | |||
{{Ent not in fgd}} | {{Ent not in fgd}} | ||
{{CD|CPhysSphere|file1=props.cpp}} | {{CD|CPhysSphere|file1=props.cpp}} | ||
{{this is a|name=prop_sphere|engine= | {{this is a|model entity|name=prop_sphere|engine=Source}} | ||
It is essentially a [[prop_physics]] with a perfectly spherical [[VPhysics]] collision model of 12 units radius. If you want to create a spherical entity, it is far more efficient to use prop_sphere than try to create a spherical [[collision mesh]]! | It is essentially a [[prop_physics]] with a perfectly spherical [[VPhysics]] collision model of 12 units radius. If you want to create a spherical entity, it is far more efficient to use prop_sphere than try to create a spherical [[collision mesh]]! | ||
{{tip|The only spherical model in Half-Life 2 is <code>models\combine_helicopter\helicopter_bomb01.mdl</code>.}} | {{tip|The only spherical model in Half-Life 2 is <code>models\combine_helicopter\helicopter_bomb01.mdl</code>.}} | ||
{{confirm|Not all prop_physics KVs are applicable to this entity. Changing ''modelscale'' for example seems to produce effects with the physics.}} | |||
{{bug|The collision mesh will not be visible with the ''[[vcollide_wireframe]] 1'' command.}} | {{bug|The collision mesh will not be visible with the ''[[vcollide_wireframe]] 1'' command.}} | ||
== Keyvalues == | == Keyvalues == | ||
{{KV|Radius|intn=radius|float|The radius for the sphere.|only={{P2CE}}}} | {{KV|Radius|intn=radius|float|The radius for the sphere.|only={{P2CE}}{{gmod}}}} | ||
== FGD Code == | == FGD Code == | ||
Line 36: | Line 38: | ||
[[Category:Physics]] | [[Category:Physics]] | ||
[[Category:Custom FGDs]] | [[Category:Custom FGDs]] | ||
[[Category:Prop entities|sphere]] |
Latest revision as of 02:24, 30 June 2025
![]() |
---|
CPhysSphere |
![]() |
prop_sphere
is a model entity available in all Source games.
It is essentially a prop_physics with a perfectly spherical VPhysics collision model of 12 units radius. If you want to create a spherical entity, it is far more efficient to use prop_sphere than try to create a spherical collision mesh!

models\combine_helicopter\helicopter_bomb01.mdl
.

Keyvalues
- Radius (radius) <float> (only in
)
- The radius for the sphere.
FGD Code
If you don't intend to make any changes to the entity's C++ code, use this:
@PointClass base(BasePropPhysics, RenderFields) studioprop() = prop_sphere : "Creates a perfect sphere."
[
]