General Category > General Anim8or Forum

How to make things look like rotate

<< < (2/2)

Kubajzz:
You can use this script for rotation around the Y axis:


--- Code: ---float $speed;
$speed = 5;
$orientation = (0, sin($speed*time), 0, cos($speed*time));
--- End code ---

How it works? Orientation variable is a quaternion - it consists of 4 values, eg. (0, 0, 0, 0); you can see that the last row of my script is almost the same as the Kreator's one, but the "sin($speed*time)" formula is on the secont position of the quaternion instead of the first - that means Y axis rotation instead of X axis... Easy isn't it?

Also check the ASL controller scripts collection on Anim8or.org for another orientation script with explanation how to use it.

shadowwinds:
thanks for the script and for the list of controller scripts, really helpful
oh and..
in preferences my frame rate's set at 24
however when i play my scenes the frame rate comes up as 83.5 ...
is this a bug in 9.6? or is it just some setting i have to change?
if it's a setting, any idea how to correct it?
sorry for all the questions.

Kubajzz:
Go to View>Preferences and check the "Limit Playback" checkbox in the bottom of the window 8)

Navigation

[0] Message Index

[*] Previous page

Go to full version