pass from RandomMotion to gravity with nexttext
in
Contributed Library Questions
•
10 months ago
hi!
I try to move text from RandomMotion to gravity usin nexttext librarie
like this:
***************************
Selector selector;
selector = new Selector();
selector.add("RandomMotion", new RandomMotion());
AbstractAction gravity = new Gravity(0.12);
Behaviour gravityBehaviour = gravity.makeBehaviour();
selector.add("Gravity", gravityBehaviour); <-- bad code!!
how make this work??
thanks!!
2