Menu

incoming Disorientation

Anonymous
2019-07-11
2019-07-11
  • Anonymous

    Anonymous - 2019-07-11

    Hi again,

    I have Dis now coming into my terrain based on Salisbury Plain UK. however all the units are orientated North. I guess this part is not yet implemented yet?

    Ive looked into RemoteEntity.cs and found where it updated the location, is thiswhere there orientation would also be updated?

    lastly where would I have to start looking to include Fire and Det Pdus?

    many thanks.

    Spriggsy

     
  • Anonymous

    Anonymous - 2019-07-11

    Gues it is the right place, updated the script to this and the entitys are now facing East, ill update this as i work it all out for others

            public virtual void UpdateEntity( EntityState es )
            {
                State = es;
    
                Quaternion quaternion = Quaternion.Euler((float)0.0, (float)90.0, (float)0.0);
    
                // TODO: Smoothing
                // Update our position            
                transform.position = ExerciseManager.Instance.WorldCoordinateConverter.RemoteToLocal( es.Location.X, es.Location.Y, es.Location.Z );
                transform.rotation = quaternion;
    
            }
    
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.