Hello all,
I currently have 2 functioning weapons in my FPS, the basic laser from mazing, and an actual projectile that I've built. But when I try to get a HitBeamResult of the projectile mesh it's just not returning anything:
void Time::CheckHit (iMeshWrapper* WeaponSprite)
{
csSectorHitBeamResult rc = WeaponSector->HitBeamPortals (
WeaponStart, WeaponSprite->GetMovable()->GetFullPosition());
Is the code for the rc, but when I check rc.mesh, I don't seem to hit anything. I don't want to simply do:
void Time::CheckHit (iMeshWrapper* WeaponSprite)
{
csSectorHitBeamResult rc = WeaponSector->HitBeamPortals (
WeaponStart, WeaponEnd);
Because then the rc will be a straight line and the hit will occur before my weapon mesh intersects the target mesh which isn't what I want for the projectile. It's ok for the laser because the laser uses a static mesh.
Any ideas?
TIA!
