Mantis - Croquet
Viewing Issue Advanced Details
978 Any minor always 03-15-05 19:31 03-15-05 19:45
howardstearns  
 
normal  
new  
open  
none    
none  
0000978: collision detection code loops or produces non-booleans
TBoundSphere>>collideSphere: depends on TBoundSphere>>isLeafSphere working properly, otherwise it loops. However, only meshes set the instance variable named normal, so most boundSpheres won't have this set.

Also, #collideSphere: returns nil or a vector, yet TFrame>>collidesInto: returns false or whatever #collideSphere: returns. I think #collidesInto: should uniformly return a boolean.
Both these issues are fixed in the attached changeset.
 collisions.cs [^] (2,066 bytes) 03-15-05 19:31

Notes
(0001267)
howardstearns   
03-15-05 19:45   
See also issue 979, which provides a means to map over frames (e.g., calling #collidesInto: during the mapping).