BabylonAbstractMesh.cs 836 B

123456789101112131415161718192021222324252627282930313233
  1. using System.Runtime.Serialization;
  2. namespace BabylonExport.Entities
  3. {
  4. [DataContract]
  5. public class BabylonAbstractMesh: BabylonNode
  6. {
  7. [DataMember]
  8. public float[] position { get; set; }
  9. [DataMember]
  10. public float[] rotation { get; set; }
  11. [DataMember]
  12. public float[] scaling { get; set; }
  13. [DataMember]
  14. public float[] rotationQuaternion { get; set; }
  15. [DataMember]
  16. public BabylonActions actions { get; set; }
  17. // Identifier shared between a mesh and its instances
  18. public int idGroupInstance;
  19. public BabylonAbstractMesh()
  20. {
  21. position = new[] { 0f, 0f, 0f };
  22. rotation = new[] { 0f, 0f, 0f };
  23. scaling = new[] { 1f, 1f, 1f };
  24. }
  25. }
  26. }