|
|
Hi,
I'm trying to do an animation that position an object in a scene using 6
degrees of liberty (x, y, z, roll, pitch, yaw). The algorithm that compute
the value of these 6 varables can be complex, so I thought it would be a
good idea to separate all these variables & calculations in a separate
Animations.inc file - and since the main *.pov file does not have to know
all these variables, only add some Get() and Set() functions, like:
Get_Roll_Position(ClockValue){ ... }
Get_Pitch_Position(ClockValue){ ... }
Set_Roll_Resolution(MinimumRollValue, MaximumRollValue, RollResolution){ ...
}
Set_Pitch_Resolution(MinimumRollValue, MaximumRollValue, RollResolution){
.... }
The main problem is that these functions would have to use global variables
.... Is there a way to make functions/macros use global variables (these
variables are floats only) ? Or will I have to put everything I need into
function parameters ?
Am I trying too hard to program like I would do in C++ ??? :)
Thank you very much,
David.
Post a reply to this message
|
|