Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: mperdue@l4software.com (Mario Perdue) Newsgroups: scea.yaroze.beginners Subject: Re: 3d vectored bullets Date: Tue, 06 Jan 1998 03:51:51 GMT Organization: L4 Software Lines: 47 Message-ID: <34b1a9d7.13820491@205.149.189.29> References: <34AFC5CF.5F85@earthlink.net> NNTP-Posting-Host: firewall.hrtc.net X-Newsreader: Forte Free Agent 1.11/32.235 Austin, I'm not sure there is enough information in your post to really tell what is wrong. Shoot() seems to set-up the initial location, and from what you've said, that works. What function actually moves the bullet, and how is it called? Mario On Sun, 04 Jan 1998 09:24:31 -0800, "Linda J. Hodge" wrote: >hello,Im trying to make a bullet fly from the center of the Car in the >current vector of the car and proceed on ,like the missiles in twisted >metal.I have some code but it doesnt seem to work.All it displays is the >bullet tmd around the car and wherever the car moves the bullet rotates >around the car. > >code Sample: > >void Shoot(PlayerStructType2 *theBullet, > unsigned long *lModelAddress) > { > DrawPlayer(theBullet,&othWorld[currentBuffer]); > lModelAddress++; > GsMapModelingData((unsigned long *)lModelAddress); > GsInitCoordinate2(WORLD, &theBullet->gsObjectCoord); > lModelAddress++; lModelAddress++; > GsLinkObject4((unsigned >long*)lModelAddress,&theBullet->gsObjectHandler,0); > theBullet->gsObjectHandler.coord2 = &theBullet->gsObjectCoord; > > theBullet->rotation.vx = theCar.gsObjectCoord.coord.t[0]; > theBullet->rotation.vy = theCar.gsObjectCoord.coord.t[1]; > theBullet->rotation.vz = theCar.gsObjectCoord.coord.t[2]; > theBullet->gsObjectCoord.coord.t[0] = theBullet->rotation.vx; > theBullet->gsObjectCoord.coord.t[1] = theBullet->rotation.vy; > theBullet->gsObjectCoord.coord.t[2] = theBullet->rotation.vz; > >AdvanceModel(&theBullet->gsObjectCoord,&theBullet->rotation,&theBullet->speed,256); > > theBullet->gsObjectCoord.flg = 0; >} >I call this function when the pad is pressed. >thanx any help would be appreciated=:-] >-Austin