update_camera_tensors_batched#

NyxPyRenderer.update_camera_tensors_batched(cam_index, pos, lookat, up)[source]#

Write one camera’s per-env poses into the camera buffers in a single batched op.

Parameters:
  • cam_index (int) – Camera index in the shared tensor.

  • pos (torch.Tensor (B, 3)) – Per-env camera pose in Z-up coordinates (e.g. from a rig attachment). B must match the number of envs the renderer was built for.

  • lookat (torch.Tensor (B, 3)) – Per-env camera pose in Z-up coordinates (e.g. from a rig attachment). B must match the number of envs the renderer was built for.

  • up (torch.Tensor (B, 3)) – Per-env camera pose in Z-up coordinates (e.g. from a rig attachment). B must match the number of envs the renderer was built for.