Inside3D!
     

How to make something match the angles of a wall?

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
Orion



Joined: 12 Jan 2007
Posts: 414
Location: Brazil

PostPosted: Mon Aug 03, 2009 11:48 pm    Post subject: How to make something match the angles of a wall? Reply with quote

For example a 3D small explosion of a laser?
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Tue Aug 04, 2009 12:32 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group