how about incline one-sided platform works?

I learned about one-sided platform sample codes in docs but what i can do if I need a incline one-sided platform?
In sample codes, the validity of one pre-collision contact between items and one-sided platform is determined by positions. Actually, the position of one platform be used in compare calculation is the center point of the platform. So if the platform (a rectangle) is incline. Item's position is not at center of platform. How can i determine the validity of contact ?

Tks
You check the validity of contact by checking the contact normal(ie. y >0).

But this will not be enough. You should only check on the first time your character touches the other body(not fixture), store the result and use it until your character leaves that body.

So what I did was:

Code:
in contact listener:
for every contact between the character and any one-sided body:
    is the body on the list?
         if false check if contact is valid and add the body and result to the list.
         else use the result form the list

somewhere else in game loop:
for every body in the list
    if the body is not touching the character remove it from the list


results:
http://www.youtube.com/watch?v=c4Y_lzgjf-A
I see that. Checking the platform body position may be wrong for this issue. I will try your idea then see what will happen.
Thanks mate.

Original thread: https://box2d.org/forum/viewtopic.php?t=8146