Collision event requires unobtainable CollisionEntry class?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Spankenstein
Posts: 249
Joined: Wed Nov 17, 2010 1:49 pm

Collision event requires unobtainable CollisionEntry class?

Post by Spankenstein »

If I set up a new collision event:

Code: Select all

entity.CollisionInformation.Events.InitialCollisionDetected += new InitialCollisionDetectedEventHandler<EntityCollidable>(Events_InitialCollisionDetected);
then I can't hook it up to a method as both the 'CollisionEntry' and 'EntityCollisionInformation' classes can't be found?

I searched the source but couldn't find them in there either. Where have I gone wrong?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Collision event requires unobtainable CollisionEntry cla

Post by Norbo »

then I can't hook it up to a method as both the 'CollisionEntry' and 'EntityCollisionInformation' classes can't be found?
There were a few namechanges during the last couple of betas:

CollisionEntry -> BroadPhaseEntry
CollisionInformation -> Collidable
EntityCollisionInformation -> EntityCollidable
Spankenstein
Posts: 249
Joined: Wed Nov 17, 2010 1:49 pm

Re: Collision event requires unobtainable CollisionEntry cla

Post by Spankenstein »

Cool thanks. The XML (intellisense?) needs updating then I think.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Collision event requires unobtainable CollisionEntry cla

Post by Norbo »

It looks like the v0.15.0.33 (release version) .chm and binaries have the correct xml comments at a glance. The latest binaries are on the downloads page on Codeplex (bepuphysics.codeplex.com), and the .chm is on the documentation tab. Visual studio might also be just looking at some old xml docs, rebuilding the project might force it to look again or something.
JoelB
Posts: 5
Joined: Thu May 19, 2011 5:04 am

Re: Collision event requires unobtainable CollisionEntry cla

Post by JoelB »

Was the Tag property removed from the BroadPhaseEntry or am I just missing something?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Collision event requires unobtainable CollisionEntry cla

Post by Norbo »

Was the Tag property removed from the BroadPhaseEntry or am I just missing something?
Nope; technically it hasn't been added (to the official stable release) yet :)

It's in the latest development version, which you can grab here:
http://bepuphysics.codeplex.com/SourceC ... evelopment
JoelB
Posts: 5
Joined: Thu May 19, 2011 5:04 am

Re: Collision event requires unobtainable CollisionEntry cla

Post by JoelB »

Awesome. Thanks!
Post Reply