Thanks Jay 

 

AddSolidFlags( FSOLID_NOT_SOLID | FSOLID_TRIGGER );

 

Dit the trick
 
> From: j...@valvesoftware.com
> To: hlcoders@list.valvesoftware.com
> Date: Tue, 1 Sep 2009 10:11:54 -0700
> Subject: Re: [hlcoders] COLLISION PROBLEM
> 
> 
> SetSolidFlags( FSOLID_TRIGGER );
> 
> Is what sets the behavior you are after (allowing entities to pass through 
> but still registering collisions).
> 
> It looks like you are misunderstanding the other functions you are calling:
> If you SetSolid( SOLID_NONE ); then you are saying the object has no solid 
> representation so nothing collides with it.
> If you SetSolid( SOLID_VPHYSICS ); then you are saying the object should use 
> a vphysics representation for collisions (union of convex hulls), then 
> SetCollisionGroup( COLLISION_GROUP_PLAYER ); you are limiting what collides 
> with it (CGameRules::ShouldCollide determines which pairs of collision groups 
> collide with each other). But it is still solid to anything that collides 
> with it.
> 
> Jay
> 
> > -----Original Message-----
> > From: hlcoders-boun...@list.valvesoftware.com [mailto:hlcoders-
> > boun...@list.valvesoftware.com] On Behalf Of steven belmans
> > Sent: Tuesday, September 01, 2009 9:51 AM
> > To: hlcoders@list.valvesoftware.com
> > Subject: [hlcoders] COLLISION PROBLEM
> > 
> > 
> > Hi all
> > 
> > 
> > 
> > I got a small problem.
> > 
> > 
> > 
> > We are building a model ent thad the player can pass thru and triggers
> > a function void hallo::byby (void)
> > 
> > 
> > 
> > If I use
> > 
> > 
> > 
> > SetSolid( SOLID_NONE);
> > 
> > SetCollisionGroup( COLLISION_GROUP_PLAYER );
> > 
> > 
> > 
> > I can pass thru the model but then my SetTouch(hallo::byby); does not
> > register anything.
> > 
> > 
> > 
> > Else if I use
> > 
> > SetSolid( SOLID_VPHYSICS);
> > 
> > SetCollisionGroup( COLLISION_GROUP_PLAYER );
> > 
> > 
> > 
> > I cant pass thru!
> > 
> > 
> > 
> > plz help
> > 
> > 
> > 
> > I Know you dont like it when people use Hotmail
> > 
> > Sorry
> > 
> > 
> > 
> > _________________________________________________________________
> > Je hele online leven op één stek met Windows Live
> > http://www.microsoft.com/belux/nl/windows/windowslive/default.aspx
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives,
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> 
> 
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
> 

_________________________________________________________________
Hebben jij en je vrienden leuke foto's van jullie feestje? Maak een groepsalbum 
en geniet nog extra na. 
http://www.microsoft.com/belux/nl/windows/windowslive/products/photos.aspx
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to