Hello Dr.Radu,

I was trying to have the NED frame simulated in  the visualization. I have 
set the gravity vector as (0.0,0.0,-9.8) as I need it to be.


 I figured out how to set the visualization the way I wanted it to be. I am 
sorry I wasn't as clear before. Here are the changes I made to have the 
visualization flip around the way I wanted it to be.

In line 525 of ChIrrCamera.cpp: 
rotX = (f32)vec2d.getAngle() + (f32)180; // --> Added 180deg in X-rotation 
to flip the camera from Z up to -Z up
and this worked out for me.

Thank you for your help.

Sincerely,
Giri
On Friday, November 29, 2024 at 8:04:10 AM UTC-5 Radu Serban wrote:

> Hi Giri,
>
>  
>
> Please provide more details on what it is that you are trying to do and 
> what “hardcoded” values for the Y and Z axes you are talking about (is that 
> in the physics simulation, in the runtime visualization, or something else?)
>
> As far as I can tell, you want is to have the gravity acting along the 
> “Down” direction of a NED frame. In that case you will want to set the 
> Chrono value of the gravitational acceleration (always assumed to be fixed 
> in the absolute frame) to zero and include gravity forces using a custom 
> force loader (as gravity will change direction relative to the absolute, 
> ECEF frame).
>
>  
>
> --Radu
>
>  
>
> *From:* [email protected] <[email protected]> *On 
> Behalf Of *Giri Mugundan
> *Sent:* Tuesday, November 12, 2024 2:23 AM
> *To:* ProjectChrono <[email protected]>
> *Subject:* [chrono] Set UpVector as -Z
>
>  
>
> Hello,
>
>  
>
> I am trying to simulate an NED frame. If I were to override the hard coded 
> values for Z or Y as the "upvector" where do I need to make the changes? 
>
> Please help me out. Thank you.
>
>  
>
> Sincerely,
>
> Giri
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "ProjectChrono" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion visit 
> https://groups.google.com/d/msgid/projectchrono/0af82d41-b21a-4a1a-ade6-dc90a1dbee2bn%40googlegroups.com
>  
> <https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/0af82d41-b21a-4a1a-ade6-dc90a1dbee2bn*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!PMPIT3q-rdeldmDZTJJgNIb3OJiDOFaa-GDjcNVCx25b-KEaHynC63rsb8Gg0uhLGaQgknFBD3TvViQQLhgN$>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/projectchrono/f671bfd8-e400-4192-8b41-e5e52e02893dn%40googlegroups.com.

Reply via email to