Welcome to the Cinema 4D Forum
Cinema 4D F.A.Q (Updated: 2016 Jul 11 4:26 pm)
|C4D Gallery||Speed Modeling Sessions||C4D Freestuff|
Subject: Xpresso QuestionEinzelganger opened this issue on Feb 03, 2013 · 10 posts
There is a two-part tutorial on 'automatic rotation' (over time) in the Cinema 4D Help. Just type in 'Xpresso' in the Search and follow the "Xpresso Tutorials" link in the search results. Hint: there is a Time node in Xpresso. :)C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, you blow your whole leg off.
-- Bjarne Stroustrup
Contact Me | Kuroyume's DevelopmentZone
I wrote an Xpresso set which does just that. It uses the "current" rotation, the target rotation, but only allows it to rotate a certain number of degrees per frame, based on a chosen time. So if it's said that the object can rotate 360 degrees in 5 seconds, the nodes will allow the object to rotate 2.4 degrees per frame until it hits the target.
There might be more efficient ways to do it, but that's what I did. I can post it if you want.
Very nice solution by raymondsalter, congrats. If you are not familiar with Python you could also use a monoflop for rotation triggered by collision and a compare node to reset the whole bunch.http://www.roobol.be