Can anyone else reproduce this? Different actor speeds in Creator & Viewer
Hi I recently submitted a question regarding the difference in the speed of objects in the Creator and the Viewer. I now have more information and think I have either have identified a bug or, more likely, I am doing something wrong
I originally made the block move using the following code. The reason I do it this way instead of using accelerate is that I can change the direction of the block (using a Direction attribute and continue to have it accelerate.
Every 0.1 seconds
Change attribute Self.BlockSpeed to Self.BlockSpeed +1 (Block Speed is REAL type)
Constrain Attribute self.LinearVelocityX to Self.BlockSpeed
This gives the same speed on both the Viewer and the Creator
BUT I wanted the block to slow its acceleration with time so I changed the second line to:
Every 0.1 seconds
Change attribute Self. BlockSpeed to Self.BlockSpeed +(5/self.time)
Constrain Attribute self.LinearVelocityX to Self.BlockSpeed
(note: Change 5 to give a different acceleration curve)
This second version gives different speeds on the Viewer and Creator. I think there is a problem with the divide function that gives the different results as multiply gives the same results on both Viewer and Creator.
OTOH Perhaps I am making some kind of basic expression mistake. If anyone has a few moments to test the above I would be most grateful.
I originally made the block move using the following code. The reason I do it this way instead of using accelerate is that I can change the direction of the block (using a Direction attribute and continue to have it accelerate.
Every 0.1 seconds
Change attribute Self.BlockSpeed to Self.BlockSpeed +1 (Block Speed is REAL type)
Constrain Attribute self.LinearVelocityX to Self.BlockSpeed
This gives the same speed on both the Viewer and the Creator
BUT I wanted the block to slow its acceleration with time so I changed the second line to:
Every 0.1 seconds
Change attribute Self. BlockSpeed to Self.BlockSpeed +(5/self.time)
Constrain Attribute self.LinearVelocityX to Self.BlockSpeed
(note: Change 5 to give a different acceleration curve)
This second version gives different speeds on the Viewer and Creator. I think there is a problem with the divide function that gives the different results as multiply gives the same results on both Viewer and Creator.
OTOH Perhaps I am making some kind of basic expression mistake. If anyone has a few moments to test the above I would be most grateful.