• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Random movement

New Here ,
Jul 31, 2020 Jul 31, 2020

Copy link to clipboard

Copied

I would like to have a ball that randomly moves around the screen. Is this possible with expressions? 

TOPICS
Expressions

Views

162

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 31, 2020 Jul 31, 2020

Copy link to clipboard

Copied

Depends entirely what "random" means in your world. Just randomly floating around is a different thing from actually bouncing and the more physically exact things need to be, the more complicated any potential expressions may get. That and of course it may be just as simple to simply keyframe the motion if it's only a few seconds or needs to be controlled in some way to reach specific points or whatever...

 

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jul 31, 2020 Jul 31, 2020

Copy link to clipboard

Copied

LATEST

It is possible with expressions.

As Mylenium already teasered, it can be as simple as wiggle(frequency, amount) on position.

It can be more difficult with actual random(min, max) function, which is calculated every frame. So the value switch has to be controlled with posterizeTime(fps) expression and the movement has to be done with linear() or ease() interpolation.

And finally it can be a physics simulation with collision detection and accurate bounching, including force, gravity and friction if you like.

 

If you are new to expressions, the first one will take you some minutes, the second one up to two days and the third one some weeks.

 

With keyframes, you can get the visual result of the third option, but within a day, maybe two - depending on animation length and detail level.

 

If you like to learn more about random motion, check http://www.motionscript.com/

The site looks a bit outdated, but it's pure gold!

 

*Martin

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines