View previous topic :: View next topic |
Author |
Message |
Orion

Joined: 12 Jan 2007 Posts: 414 Location: Brazil
|
Posted: Mon Aug 03, 2009 11:48 pm Post subject: How to make something match the angles of a wall? |
|
|
For example a 3D small explosion of a laser? |
|
Back to top |
|
 |
Spike
Joined: 05 Nov 2004 Posts: 944 Location: UK
|
Posted: Tue Aug 04, 2009 12:32 am Post subject: |
|
|
shoot a traceline into the wall.
read the trace_plane_normal global.
This is the direction away from the wall.
You can then pass that through to vectoangles to get an angle pointing away from it.
You'll probably want to randomize the roll angle. _________________ What's a signature? |
|
Back to top |
|
 |
|