|
|
In article <slr### [at] linuxparkerrfwicom>,
ron### [at] povrayorg wrote:
> Not so much a bug, but a bit roundabout.
The use of VLength and VInverseScaleEq instead of VNormalize wasn't the
bug I was talking about...the vector passed to the function is being
normalized, when the function should create it's own copy. Since a
vector is an array, it can be modified from within a function it is
passed to.
I was using this function in some calculations for randomly changing the
particle direction, passing it the emission direction directly. Since
the direction vector in my patch specifies the speed as well as the
direction, all the particles ended up travelling at a speed of 1,
ignoring the length of the direction vector.
--
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
|