How to make something match the angles of a wall?
Moderator: InsideQC Admins
2 posts
• Page 1 of 1
How to make something match the angles of a wall?
For example a 3D small explosion of a laser?
-

Orion - Posts: 476
- Joined: Fri Jan 12, 2007 6:32 pm
- Location: Brazil
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.
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.
- Spike
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest