View Single Post
  #3  
Old 02-28-2005, 11:02 AM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
Quote:
Originally posted by farshizzo
When using the collidebox function, if you don't pass any values Vizard will automatically calculate the bounding box of the object and use it for collisions. Try using this with your tables, however, if you scale the table in Vizard then it won't work.
No, this does not work right. I did not scale the table in vizard but the position the Ball hits the table.collidebox() a lot below the actual table-surface.

So I might have to use the invisible box.

Code:
info == room.intersect(prevPos,curPos)
if info.intersected:
	print 'ball has gone through a wall'
Thank you, very nice idea!!
Johannes
Reply With Quote