File:Cast ray-example.jpg: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
== Summary ==
game {{portal}} map testchmb_a_04


4 cast_ray uses showing, first the commads were used then I teleported to desired position to take screen shot
* cast_ray shot at portal didn't go through it
:{{expand|title=Console output|
<pre>
Hit worldspawn
position 0.00, 0.00, 0.00
angles 0.00, 0.00, 0.00
Hit: hitbox 0, hitgroup 0, physics bone 0, solid 1, surface CONCRETE/CONCRETE_MODULAR_WALL001A, surfaceprop concrete, contents 00000001
</pre>}}
* cast_ray doesn't go through glass window
:{{expand|title=Console output|
<pre>
Hit func_brush
position 256.00, 385.50, 192.00
angles 0.00, 0.00, 0.00
Hit: hitbox 0, hitgroup 0, physics bone 0, solid 6, surface maps/testchmb_a_04/glass/glasswindow_refract01_410_257_176, surfaceprop glass, contents 10000002
</pre>}}
* cast_ray went through the water surface
:{{expand|title=Console output|
<pre>
Hit worldspawn
position 0.00, 0.00, 0.00
angles 0.00, 0.00, 0.00
Hit: hitbox 0, hitgroup 0, physics bone 0, solid 1, surface maps/testchmb_a_04/metal/metalwall048e_250_113_-63, surfaceprop metal, contents 00000001
</pre>}}
* cast_ray did hit prop_combine_ball
:{{expand|title=Console output|
<pre>
Hit prop_energy_ball
position 26.07, 318.00, 61.46
angles -0.00, 0.00, 0.00
Hit: hitbox 0, hitgroup 0, physics bone 0, solid 2, surface **studio**, surfaceprop metal, contents 00000001
</pre>}}
[[Category:Image/Console command examples]]

Revision as of 05:50, 12 May 2025

Summary

game Portal map testchmb_a_04

4 cast_ray uses showing, first the commads were used then I teleported to desired position to take screen shot

  • cast_ray shot at portal didn't go through it
Console output
Hit worldspawn
position 0.00, 0.00, 0.00
angles 0.00, 0.00, 0.00
Hit: hitbox 0, hitgroup 0, physics bone 0, solid 1, surface CONCRETE/CONCRETE_MODULAR_WALL001A, surfaceprop concrete, contents 00000001
  • cast_ray doesn't go through glass window
Console output
Hit func_brush
position 256.00, 385.50, 192.00
angles 0.00, 0.00, 0.00
Hit: hitbox 0, hitgroup 0, physics bone 0, solid 6, surface maps/testchmb_a_04/glass/glasswindow_refract01_410_257_176, surfaceprop glass, contents 10000002
  • cast_ray went through the water surface
Console output
Hit worldspawn
position 0.00, 0.00, 0.00
angles 0.00, 0.00, 0.00
Hit: hitbox 0, hitgroup 0, physics bone 0, solid 1, surface maps/testchmb_a_04/metal/metalwall048e_250_113_-63, surfaceprop metal, contents 00000001
  • cast_ray did hit prop_combine_ball
Console output
Hit prop_energy_ball
position 26.07, 318.00, 61.46
angles -0.00, 0.00, 0.00
Hit: hitbox 0, hitgroup 0, physics bone 0, solid 2, surface **studio**, surfaceprop metal, contents 00000001

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current05:46, 12 May 2025Thumbnail for version as of 05:46, 12 May 20251,920 × 1,080 (384 KB)Nescius (talk | contribs)

The following page uses this file: