Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Bump Detection?  (Read 1060 times)

0 Members and 1 Guest are viewing this topic.
Bump Detection?
« on: March 18, 2007, 08:14:45 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2245
I have a line thats constructed from many points and i need to detect all the bumps in it.  I'm probably not making much sense :/
Logged

Pedlya

Pederp
Re: Bump Detection?
« Reply #1 on: March 18, 2007, 08:40:22 am »
  • Vote for Harvey!~
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2408
What language..and I still dont understand  ???
Logged
So what! I wanna get out! 'Cos there's so much out there! So many different people, living different lives! Incredibly good guys, bad guys... Folks completely different from us! It's one huge melting pot! See, it's not about success, dying in the streets, who's better, who's not! I just want to be a part of it! I realized that even if I've no connections, no talent, even if I'm one big loser, I want to use my hands and feet to think and move, to shape my own life! We can just die here or we can try, see what we've got!
Re: Bump Detection?
« Reply #2 on: March 18, 2007, 08:59:12 am »
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 4588
I'm probably not making much sense :/
I second that.
Logged
the a o d c
Re: Bump Detection?
« Reply #3 on: March 18, 2007, 09:13:37 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2245
you know, sort of like this

No language in particular
Logged
Re: Bump Detection?
« Reply #4 on: March 18, 2007, 11:36:31 am »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Can't you just make a walker object that follows the line from one point to the next and if their is a steep inversion of the y axis then it would flag up an event saying that it has found a bump?

Sorry, I'm probably making no sense either >.>.
Logged
Re: Bump Detection?
« Reply #5 on: March 18, 2007, 11:59:40 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2245
Its not just about sensing if there is a bump, its also about detecting where it begins, and where it ends
Logged
Re: Bump Detection?
« Reply #6 on: March 18, 2007, 12:13:40 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Just make it understand a pattern, all bumps follow a quite simple one. They start by traveling down followed by a steep inversion of the y axis then travel up for a while followed by a steep inversion of the y axis again then travel down further until there is another steep inversion of the y axis so its now facing up.

Sorry, that even confused me - I'll try and think up a better explanation.


EDIT: Or you could just look at the points, look at the first and third if they are both below or above the second then they are the start / end of a bump. eg.

   .
.     .   = Bump

      .
   .      = No bump
.

.     .
   .      = Bump.
« Last Edit: March 18, 2007, 12:15:27 pm by Infinitus »
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.014 seconds with 48 queries.