Allows to pass data from Js to Cpp, it'd useful for trigger's script.
Example:
let segment = Vector3D.sub(outposts[1], outposts[0]); let normal = Vector3D.clone(segment).normalize(); let distance = 80; [normal.x, normal.z] = [-normal.z, normal.x]; let path = { "name": "test" + Math.random(), "orientation": "target", "positionNodes": [ {"deltaTime": 0, "position": Vector3D.add(Vector3D.add(outposts[0], Vector3D.mult(normal, distance)), new Vector3D(0, 40, 0))}, {"deltaTime": 2 + segment.length() / 10, "position": Vector3D.add(Vector3D.add(outposts[1], Vector3D.mult(normal, distance)), new Vector3D(0, 40, 0))} ], "targetNodes": [ {"deltaTime": 0, "position": Vector3D.add(outposts[0], new Vector3D(0, 3, 0))}, {"deltaTime": 1, "position": Vector3D.add(outposts[0], new Vector3D(0, 9, 0))}, {"deltaTime": segment.length() / 10, "position": Vector3D.add(outposts[1], new Vector3D(0, 9, 0))}, {"deltaTime": 1, "position": Vector3D.add(outposts[1], new Vector3D(0, 3, 0))} ] }; cmpCinemaManager.AddPath(path); cmpCinemaManager.AddCinemaPathToQueue(path.name); cmpCinemaManager.Play();