Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Object collide with floor

  • Dan Ebberts

    January 27, 2016 at 9:05 pm

    It’s a little tricky. You’d need to use the time parameter of sampleImage() to find out when the object first touches the floor. You’d do that by starting at the time where contact is first possible (time = 0 maybe, or possibly one of the layer in points) and loop forward frame-by-frame until you find contact (or you get to the current time). Then you’d use that time to get the position to hold.

    Fairly straightforward, but a bit of work.

    Dan

  • Icaro Lobo

    January 27, 2016 at 10:35 pm

    Hi Dan, do you think they have used this method here? https://youtu.be/vQxD8OOjh-I?t=7m24s
    That’s what I am trying to achieve.

    Thanks.

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • Icaro Lobo

    January 27, 2016 at 10:43 pm

    I don’t why, but the timecode came out wrong. Correct: 7:25

  • Dan Ebberts

    January 27, 2016 at 11:40 pm

    No, it looks like they implemented a more efficient binary search to quickly zero in on the upper edge of the ground. It appears to be a much better approach than the one I outlined.

    Dan

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy