Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: colision with boxes  (Read 267 times)
rott7
Community Member
*
Posts: 3


« on: June 08, 2008, 07:15:59 PM »

There are any simple command to detect the collision of the camera with the boxes or meshes?
Logged
jviper
Community Member
*
Posts: 1318

Discipline in training


« Reply #1 on: June 08, 2008, 08:27:21 PM »

You can use ray-collision which will work with all meshes. Otherwise, you'll have to do:

If X >= BoxMin.x and X<= BoxMax.x And _
   Y >= BoxMin.y and Y<= BoxMax.y And _
   Z >= BoxMin.z and Z<= BoxMax.z Then .......
Logged

JAbstract.....Don't just imagine, make it happen!
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks