ParticleCollisions.generated.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Particles
  7. * @{
  8. */
  9. /// <summary>Particle evolver that allows particles to collide with the world.</summary>
  10. public partial class ParticleCollisions : ParticleEvolver
  11. {
  12. private ParticleCollisions(bool __dummy0) { }
  13. /// <summary>Creates a new particle collision evolver.</summary>
  14. public ParticleCollisions(ParticleCollisionsOptions desc)
  15. {
  16. Internal_create(this, ref desc);
  17. }
  18. /// <summary>Creates a new particle collision evolver.</summary>
  19. public ParticleCollisions()
  20. {
  21. Internal_create0(this);
  22. }
  23. /// <summary>
  24. /// Determines a set of planes to use when using the Plane collision mode. Planes are expected to be in world space.
  25. /// </summary>
  26. public Plane[] Planes
  27. {
  28. get { return Internal_getPlanes(mCachedPtr); }
  29. set { Internal_setPlanes(mCachedPtr, value); }
  30. }
  31. /// <summary>
  32. /// Determines a set of objects whose transforms to derive the collision planes from. Objects can move in the world and
  33. /// collision planes will be updated automatically. Object's negative Z axis is considered to be plane normal.
  34. /// </summary>
  35. public SceneObject[] PlaneObjects
  36. {
  37. get { return Internal_getPlaneObjects(mCachedPtr); }
  38. set { Internal_setPlaneObjects(mCachedPtr, value); }
  39. }
  40. /// <summary>Options describing the evolver.</summary>
  41. public ParticleCollisionsOptions Options
  42. {
  43. get
  44. {
  45. ParticleCollisionsOptions temp;
  46. Internal_getOptions(mCachedPtr, out temp);
  47. return temp;
  48. }
  49. set { Internal_setOptions(mCachedPtr, ref value); }
  50. }
  51. [MethodImpl(MethodImplOptions.InternalCall)]
  52. private static extern void Internal_setPlanes(IntPtr thisPtr, Plane[] planes);
  53. [MethodImpl(MethodImplOptions.InternalCall)]
  54. private static extern Plane[] Internal_getPlanes(IntPtr thisPtr);
  55. [MethodImpl(MethodImplOptions.InternalCall)]
  56. private static extern void Internal_setPlaneObjects(IntPtr thisPtr, SceneObject[] objects);
  57. [MethodImpl(MethodImplOptions.InternalCall)]
  58. private static extern SceneObject[] Internal_getPlaneObjects(IntPtr thisPtr);
  59. [MethodImpl(MethodImplOptions.InternalCall)]
  60. private static extern void Internal_setOptions(IntPtr thisPtr, ref ParticleCollisionsOptions options);
  61. [MethodImpl(MethodImplOptions.InternalCall)]
  62. private static extern void Internal_getOptions(IntPtr thisPtr, out ParticleCollisionsOptions __output);
  63. [MethodImpl(MethodImplOptions.InternalCall)]
  64. private static extern void Internal_create(ParticleCollisions managedInstance, ref ParticleCollisionsOptions desc);
  65. [MethodImpl(MethodImplOptions.InternalCall)]
  66. private static extern void Internal_create0(ParticleCollisions managedInstance);
  67. }
  68. /** @} */
  69. }