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

Physics constraints: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{this is a|console command|name=physics_constraints}} It highlights physics constraints in the map with colorful boxes. Syntax: {{code|physics_constraints <classname>/<...")
 
(Added information about the command observed in Half-Life 2)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{this is a|console command|name=physics_constraints}} It highlights physics constraints in the map with colorful boxes. Syntax: {{code|physics_constraints <[[classname]]>/<[[targetname]]>}}. No argument picks what player is looking at.
{{this is a|console command|name=physics_constraints}} It highlights physics constraints in the map with colorful boxes. It will show data about the constraint entities involved in a [[debug overlays|debug overlay]] like that of {{code|[[ent_text]]}}. Syntax: {{code|physics_constraints <[[classname]]>/<[[targetname]]>}}. No argument picks what player is looking at.
{{devreq}}
Without developer mode enabled, the command will only at best print information of the physics constraints to the console.
==See also==
* [[Debug overlays]]
[[Category:Debugging]]
[[Category:Debugging]]

Latest revision as of 20:02, 21 September 2024

physics_constraints is a console command available in all Source Source games. It highlights physics constraints in the map with colorful boxes. It will show data about the constraint entities involved in a debug overlay like that of ent_text. Syntax: physics_constraints <classname>/<targetname>. No argument picks what player is looking at.

Note.pngNote:The game must be in Developer mode for this command to work properly.

Without developer mode enabled, the command will only at best print information of the physics constraints to the console.

See also