Add optional azimuth and elevation to initial free camera.
- Add `azimuth` and `elevation` to `visual.global`. - Add `mjv_defaultFreeCamera`. - Use `mjv_defaultFreeCamera` in `simulate`. PiperOrigin-RevId: 465505244 Change-Id: I61e60f14a990d4e2d220958adb75c325001978ee
This commit is contained in:
committed by
Copybara-Service
parent
5ee184ddaa
commit
b966a37855
@@ -2929,6 +2929,26 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
|
||||
),
|
||||
doc='Set default camera.',
|
||||
)),
|
||||
('mjv_defaultFreeCamera',
|
||||
FunctionDecl(
|
||||
name='mjv_defaultFreeCamera',
|
||||
return_type=ValueType(name='void'),
|
||||
parameters=(
|
||||
FunctionParameterDecl(
|
||||
name='m',
|
||||
type=PointerType(
|
||||
inner_type=ValueType(name='mjModel', is_const=True),
|
||||
),
|
||||
),
|
||||
FunctionParameterDecl(
|
||||
name='cam',
|
||||
type=PointerType(
|
||||
inner_type=ValueType(name='mjvCamera'),
|
||||
),
|
||||
),
|
||||
),
|
||||
doc='Set default free camera.',
|
||||
)),
|
||||
('mjv_defaultPerturb',
|
||||
FunctionDecl(
|
||||
name='mjv_defaultPerturb',
|
||||
|
||||
Reference in New Issue
Block a user