Andrew Barras (barras++at++vsl.ist.ucf.edu)
Mon, 3 Jul 1995 23:50:48 -0400 (EDT)
dbx version 3.19 Nov 3 1994 19:59:46 Core file process name doesn't match
executable Core from signal SIGSEGV: Segmentation violation (dbx) where > 0
pfCylIsectSphere(0x7fff8954, 0x0, 0x89749c, 0x909d10)
["../../../lib/libpr/geomath.c":3117, 0x5244cc]
1 <stripped>() [<stripped>, 0x10085be8]
The following is the code fragment that I am having problems with.
Variable Declaration:
pfSegSet segset;
pfHit **hits[100];
long isect;
pfVec3 position; (my position)
pfGroup *perf->Terrain->ModelRoot;
proxObj[i].distance_from_me (float that tells me what the distance
is from me to another object in my simulation)
Update Loop: (run once a frame)
pfSetVec3(segset.segs[0].pos, position.xyz[0], position.xyz[1],
(position.xyz[2]+1.0));
segset.segs[0].length = proxObj[i].distance_from_me;
isect = pfSegsIsectNode(perf->Terrain->ModelRoot, &segset, hits);
This is set only once at start of simulation:
segset.activeMask = 1;
segset.isectMask = 0xFFFF;
segset.mode = PFTRAV_IS_PRIM|PFTRAV_IS_NORM|PFTRAV_IS_CULL_BACK;
pfSetVec3(segset.segs[0].dir, 0.0f, 0.0f, -1.0f);
segset.segs[0].length = 50000.0f;
Also, what are the defaults to the pfSegSet Structure? What needs to be
set to start with and what can be updated in simloop (pos, dir, ?????)
THANKS
______________________________________________________________________________
Andrew Barras - chief modelurgist
The University of Central Florida
/^\ Virtual Reality Research Team (TOY SCOUTS)
0^| U |^0 barras++at++vsl.ist.ucf.edu
| |_ _| |
() _M_ ()
0 U 0
(0 0) The Syberknight Project
0 0 Toy Scouts Arcade
[] [] SigGraph '94
_______________________________________________________________________________
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:39 PDT