why is my camera not moving when mounting offset is changed ?

I am trying to mount a camera to both of these actors in the premade scene , not a custom one, but how is the mounting offset not changing the location of this camera , my view in video viewer is always the same. It doesnt work for both kinds of camera blocks.

Réponses (2)

Simran
Simran le 21 Avr 2026
I understand you're trying to mount a camera to actors (BottomPlane and TopPlane) in a premade Simulation 3D scene, but changing the mounting offset parameters isn't affecting the camera view in the Video Viewer - it remains the same regardless of the offset values you set.
Assuming you're using MATLAB R2024b release with Simulink 3D Animation, with the latest windows version:
I would suggest trying:
  1. Check the camera parent/mounting configuration:
  • Verify the camera block is properly set to mount/parent to the actor
  • Check if there's a "Parent Name" or "Mounting" parameter in the Simulation 3D Camera Get block
  • Ensure it matches the actor name exactly
  • Please refer to this documentation for more information - Simulation 3D Camera Get - Camera image - Simulink
2. Verify the actors are actually moving/updating:
  • Ensure the TopPlane and BottomPlane subsystems are updating their positions
  • If actors are static, camera offset changes might not be visible
Hope this helps!
Nishan Nekoo
Nishan Nekoo le 5 Mai 2026 à 18:06
Starting in MATLAB R2025a, you also have access to a Sensor Field of View parameter in the Simulation 3D Camera. By enabling this, you can see exactly where the camera is pointed in the Simulation 3D Viewer, and make any adjustments as necessary.
Checkbox for "Visualize field of view" on the "Parameters" tab:
You can also enable the Offsets as Input ports and by connecting Constant blocks to this, you can modify the camera position at runtime until you are happy with the location.
Hope that helps!
Nishan

Produits

Version

R2024b

Question posée :

le 17 Avr 2026

Réponse apportée :

le 5 Mai 2026 à 18:06

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by