Here's my complete code: http://kornerr.alfamoon.com/download/13.tar.bz2 dGeomRaySet is in src/sm/player.cpp: SMPlayer::Pull and calling it occurs in src/core.cpp: Core::GetNodePosition which is get called when pressing "R". Thanks.