| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System;
- using System.Runtime.CompilerServices;
- using System.Runtime.InteropServices;
- namespace BansheeEngine
- {
- /** @addtogroup Physics
- * @{
- */
- /// <summary>
- /// Specifies parameters for a drive that will attempt to move the joint bodies to the specified drive position and
- /// velocity.
- /// </summary>
- [StructLayout(LayoutKind.Sequential), SerializeObject]
- public partial struct D6JointDrive
- {
- /// <summary>Initializes the struct with default values.</summary>
- public static D6JointDrive Default()
- {
- D6JointDrive value = new D6JointDrive();
- value.stiffness = 0f;
- value.damping = 0f;
- value.forceLimit = 3.40282347E+38f;
- value.acceleration = false;
- return value;
- }
- /// <summary>Spring strength. Force proportional to the position error.</summary>
- public float stiffness;
- /// <summary>Damping strength. Force propertional to the velocity error.</summary>
- public float damping;
- /// <summary>Maximum force the drive can apply.</summary>
- public float forceLimit;
- /// <summary>
- /// If true the drive will generate acceleration instead of forces. Acceleration drives are easier to tune as they
- /// account for the masses of the actors to which the joint is attached.
- /// </summary>
- public bool acceleration;
- }
- /** @} */
- }
|