Hey guys,
at the moment I try to create an spawn by travel operator in Box 3 to get extra channels like “Parent ID”… I noticed, that the “Show Data” in Box 3 does contain “wrong” values. I have a really simple flow to test this:
Just one particle born at [12,0,0] (Position Icon) with a speed of 50 in Z-Direction.
To check the position and speed values I also added a DataOp (Input Standart [Position] -> Ouput Standart [Position] - I did the same with the particle speed).
Here is a quick screenshot: http://puu.sh/dFqSP/0144c5fd9e.png
Now the confusing part begins:
I expect this to happen:
- [Frame 0] The particle is spawned at [12,0,0] and it gets the speed of 50 (1.66 units per frame).
- [Frame 1] The particle speed of frame 0 is added to the position of frame 0 - thus: Position [12,0,1.66]. The speed doesn’t change…
- [Frame n] The partice is at the position [12,0,1.66n] (Example: Frame 6: Position [12,0,10 ~ (1.666)]
What actually happens (in the DataOp “ShowData”):
- [Frame 0] See my expectation (The particle is at [12,0,0] and already has a speed vector.
- [Frame 1] The particle is still at [12,0,0] and also keeps the same speed.
- [Frame 2] The particle moved (finally)! It moved to [12,0,1.66] - it did what I thought it would do one frame before…
- [Frame n] From now on the particle behaves as expected, but one frame behind my expecations. The particle is at the position [12,0,1.66*(n-1)].
What the viewport shows me:
- My expectation (displayed as lines)! At frame 0 line from Z= 0 to Z=1.66 (Pos at Frame 0 to Pos at Frame 1). At Frame n line from [12,0,1.66n] to [12,0,1.66(n+1)].
I don’t understand what’s happening here… This is getting more confusing with more confusing with more integrations steps… BUT I tested one more thing: I saved the particle as .prt and reopened in a PRT-Loader. Then inspected the data via a Magma Modifier and the Krakatoa Debug Mode. This confirmed my expectation! The particle is at the expected position, but why does Box 3 work with different values???
Screenshot: http://puu.sh/dFsrD/f6250c9468.png
I really hope for your help! How is speed and position calculated?
Matthias

