Prop sphere: Difference between revisions
Jump to navigation
Jump to search
Warning:
Tip:The only spherical model in Half-Life 2 is
Bug:The collision mesh will not be visible with the vcollide_wireframe 1 command. [todo tested in ?]
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) |
(-added class hierarchy, cleanup) |
||
Line 1: | Line 1: | ||
{{Ent not in fgd}} | {{Ent not in fgd}} | ||
{{CD|CPhysSphere|file1=props.cpp}} | |||
{{this is a|name=prop_sphere|engine=2|e0}} | |||
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>.}} | ||
{{bug|The collision mesh will not be visible with the ''[[vcollide_wireframe]] 1'' command.}} | |||
== Keyvalues == | |||
{{ | {{KV|Radius|intn=radius|float|The radius for the sphere.|only={{P2CE}}}} | ||
{{ | |||
== FGD Code == | == FGD Code == | ||
Line 21: | Line 21: | ||
</source> | </source> | ||
== | == See also == | ||
* [[Extending_Prop_Sphere|Visit this snippet, on how you can improve the existing prop_sphere code.]] | |||
* {{ent|prop_data}} | |||
[[Extending_Prop_Sphere|Visit this snippet, on how you can improve the existing prop_sphere code.]] | * [[Prop Types Overview]] | ||
** {{ent|prop_physics}} | |||
** {{ent|prop_physics_multiplayer}} | |||
** {{ent|prop_physics_respawnable}} | |||
{{ | ** {{ent|prop_physics_override}} | ||
** {{ent|prop_dynamic}} | |||
{{ | ** {{ent|prop_static}} | ||
{{ | ** {{ent|prop_ragdoll}} | ||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
{{ | |||
[[Category:Free source code]] | [[Category:Free source code]] | ||
[[Category:Physics]] | [[Category:Physics]] | ||
[[Category:Custom FGDs]] | [[Category:Custom FGDs]] |
Revision as of 01:00, 20 March 2024
![]() |
---|
CPhysSphere |
![]() |
prop_sphere
is an e0 available in all Template:2 games.Template:2 topicon

- The {{{engine}}} parameter is inconsistent with the name defined by the {{2}} template.
If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
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."
[
]