Forum

How to make something match the angles of a wall?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

How to make something match the angles of a wall?

Postby Orion » Mon Aug 03, 2009 11:48 pm

For example a 3D small explosion of a laser?
User avatar
Orion
 
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Postby Spike » Tue Aug 04, 2009 12:32 am

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.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest