Refactor camera orthographic attribute to projection enum.

PiperOrigin-RevId: 847069028
Change-Id: I7f686fe654e9b56519cab8bd2f37c9cc40091d3f
This commit is contained in:
Yuval Tassa
2025-12-20 03:27:42 -08:00
committed by Copybara-Service
parent 44c8ef890d
commit b8a4ac5d48
20 changed files with 102 additions and 44 deletions
+5 -5
View File
@@ -2244,11 +2244,11 @@ STRUCTS: Mapping[str, StructDecl] = dict([
array_extent=('ncam', 9),
),
StructFieldDecl(
name='cam_orthographic',
name='cam_projection',
type=PointerType(
inner_type=ValueType(name='int'),
),
doc='orthographic camera; 0: no, 1: yes',
doc='projection type (mjtProjection)',
array_extent=('ncam',),
),
StructFieldDecl(
@@ -7566,9 +7566,9 @@ STRUCTS: Mapping[str, StructDecl] = dict([
doc='target body for tracking/targeting',
),
StructFieldDecl(
name='orthographic',
type=ValueType(name='int'),
doc='is camera orthographic',
name='proj',
type=ValueType(name='mjtProjection'),
doc='camera projection type',
),
StructFieldDecl(
name='fovy',