combo pattern detection

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Phippu
Posts: 24
Joined: Fri Jun 03, 2011 3:39 pm

combo pattern detection

Post by Phippu »

Is there any way to detect specific motion patterns, i.e I have an entity and I want to detect if that entity has made a "360", a flip or anything like this? To be more specific I want to detect if an entity was rotated by 360 degree in a specific time about a specific axis. The purpouse of this is to detect if combo has performed, i.e if the entity is a car or a boat. I am not sure if this realy belongs in here, but maybe someone has a good idea on how to detect combos :P

Thx!
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: combo pattern detection

Post by Norbo »

There's nothing in the engine that would do that automatically. The best bet is to create some trackers externally that watch the state of entities over time. All of the combo logic would go into those trackers. Multiple trackers could be scanning the state stream at the same time to pile up various kinds of combos.
Post Reply