www.jpct.net
jPCT-AE - a 3d engine for Android => Support => Topic started by: Alexey on September 05, 2011, 10:49:41 am
-
Hello all, i need to do something like path animation, move the object along the path. yet what I think to place a dummies in the world and use them as intermediate points, but this is somewhat time-consuming. Maybe have a better idea?
-
For benchmark runs, i use to store the path in small time deltas (20ms or something) as a Matrix/SimpleVector tuple for orientation/position. I'm not sure if this applies to your problem.
-
сan you explain more specifically?
-
Not much to explain...i create the path by walking through the level and each 20ms, i record the current position and orientation. The resulting arrays of positions and rotation matrices are then written to disc. To run the benchmark, i read this data back in and set orientation and position based on the current time elapsed...that's all.
-
I understand. I was not clear how the movement was specified. Manually move do not quite fit for me, but thanks anyway!
-
I solve mi issue :) - i created needed path, convert it to mesh, export to collada .dae, from result file copy vertices's array and translation vector & parse it with adding translation vector to array of SimpleVector