mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
5 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,171 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/AABBTree/AABBTreeBuilder.h#L13">Jolt/AABBTree/AABBTreeBuilder.h:13</see>
|
||||
/// <br/>
|
||||
/// <c>struct AABBTreeBuilderStats</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 56)]
|
||||
public struct AABBTreeBuilderStats
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Stats returned by the triangle splitter algorithm
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/AABBTree/AABBTreeBuilder.h#L16">Jolt/AABBTree/AABBTreeBuilder.h:16</see>
|
||||
/// <br/>
|
||||
/// <c>TriangleSplitter::Stats mSplitterStats</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// @name Splitter stats
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public TriangleSplitter.Stats mSplitterStats;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Surface Area Heuristic cost of this tree
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/AABBTree/AABBTreeBuilder.h#L19">Jolt/AABBTree/AABBTreeBuilder.h:19</see>
|
||||
/// <br/>
|
||||
/// <c>float mSAHCost = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// @name Tree structure
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public float mSAHCost;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Minimal depth of tree (number of nodes)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/AABBTree/AABBTreeBuilder.h#L20">Jolt/AABBTree/AABBTreeBuilder.h:20</see>
|
||||
/// <br/>
|
||||
/// <c>int mMinDepth = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(20)]
|
||||
public int mMinDepth;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Maximum depth of tree (number of nodes)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/AABBTree/AABBTreeBuilder.h#L21">Jolt/AABBTree/AABBTreeBuilder.h:21</see>
|
||||
/// <br/>
|
||||
/// <c>int mMaxDepth = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(24)]
|
||||
public int mMaxDepth;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Number of nodes in the tree
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/AABBTree/AABBTreeBuilder.h#L22">Jolt/AABBTree/AABBTreeBuilder.h:22</see>
|
||||
/// <br/>
|
||||
/// <c>int mNodeCount = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(28)]
|
||||
public int mNodeCount;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Number of leaf nodes (that contain triangles)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/AABBTree/AABBTreeBuilder.h#L23">Jolt/AABBTree/AABBTreeBuilder.h:23</see>
|
||||
/// <br/>
|
||||
/// <c>int mLeafNodeCount = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(32)]
|
||||
public int mLeafNodeCount;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Configured max triangles per leaf
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/AABBTree/AABBTreeBuilder.h#L26">Jolt/AABBTree/AABBTreeBuilder.h:26</see>
|
||||
/// <br/>
|
||||
/// <c>int mMaxTrianglesPerLeaf = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// @name Configured stats
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(36)]
|
||||
public int mMaxTrianglesPerLeaf;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Minimal amount of triangles in a leaf
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/AABBTree/AABBTreeBuilder.h#L29">Jolt/AABBTree/AABBTreeBuilder.h:29</see>
|
||||
/// <br/>
|
||||
/// <c>int mTreeMinTrianglesPerLeaf = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// @name Actual stats
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(40)]
|
||||
public int mTreeMinTrianglesPerLeaf;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Maximal amount of triangles in a leaf
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/AABBTree/AABBTreeBuilder.h#L30">Jolt/AABBTree/AABBTreeBuilder.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>int mTreeMaxTrianglesPerLeaf = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(44)]
|
||||
public int mTreeMaxTrianglesPerLeaf;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Average amount of triangles in leaf nodes
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/AABBTree/AABBTreeBuilder.h#L31">Jolt/AABBTree/AABBTreeBuilder.h:31</see>
|
||||
/// <br/>
|
||||
/// <c>float mTreeAvgTrianglesPerLeaf = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(48)]
|
||||
public float mTreeAvgTrianglesPerLeaf;
|
||||
}
|
||||
}
|
||||
46
brutal.jolt/Brutal.Jolt/Generated/Structs/BodyPair.gen.cs
Normal file
46
brutal.jolt/Brutal.Jolt/Generated/Structs/BodyPair.gen.cs
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyPair.h#L13">Jolt/Physics/Body/BodyPair.h:13</see>
|
||||
/// <br/>
|
||||
/// <c>struct alignas(uint64) BodyPair</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Structure that holds a body pair
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8)]
|
||||
public struct BodyPair
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyPair.h#L30">Jolt/Physics/Body/BodyPair.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>BodyID mBodyA</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public uint mBodyA;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyPair.h#L31">Jolt/Physics/Body/BodyPair.h:31</see>
|
||||
/// <br/>
|
||||
/// <c>BodyID mBodyB</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(4)]
|
||||
public uint mBodyB;
|
||||
}
|
||||
}
|
||||
444
brutal.jolt/Brutal.Jolt/Generated/Structs/PhysicsSettings.gen.cs
Normal file
444
brutal.jolt/Brutal.Jolt/Generated/Structs/PhysicsSettings.gen.cs
Normal file
|
|
@ -0,0 +1,444 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L27">Jolt/Physics/PhysicsSettings.h:27</see>
|
||||
/// <br/>
|
||||
/// <c>struct PhysicsSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 84)]
|
||||
public struct PhysicsSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L33">Jolt/Physics/PhysicsSettings.h:33</see>
|
||||
/// <br/>
|
||||
/// <c>int mMaxInFlightBodyPairs = 16384</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Size of body pairs array, corresponds to the maximum amount of potential body pairs that can be in flight at any time.
|
||||
/// Setting this to a low value will use less memory but slow down simulation as threads may run out of narrow phase work.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public int mMaxInFlightBodyPairs;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L36">Jolt/Physics/PhysicsSettings.h:36</see>
|
||||
/// <br/>
|
||||
/// <c>int mStepListenersBatchSize = 8</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// How many PhysicsStepListeners to notify in 1 batch
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(4)]
|
||||
public int mStepListenersBatchSize;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L39">Jolt/Physics/PhysicsSettings.h:39</see>
|
||||
/// <br/>
|
||||
/// <c>int mStepListenerBatchesPerJob = 1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// How many step listener batches are needed before spawning another job (set to INT_MAX if no parallelism
|
||||
/// is desired)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(8)]
|
||||
public int mStepListenerBatchesPerJob;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L42">Jolt/Physics/PhysicsSettings.h:42</see>
|
||||
/// <br/>
|
||||
/// <c>float mBaumgarte = 0.2f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Baumgarte stabilization factor (how much of the position error to 'fix' in 1 update) (unit:
|
||||
/// dimensionless, 0 = nothing, 1 = 100%)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(12)]
|
||||
public float mBaumgarte;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L47">Jolt/Physics/PhysicsSettings.h:47</see>
|
||||
/// <br/>
|
||||
/// <c>float mSpeculativeContactDistance = 0.02f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Radius around objects inside which speculative contact points will be detected. Note that if this is too big
|
||||
/// you will get ghost collisions as speculative contacts are based on the closest points during the collision detection
|
||||
/// step which may not be the actual closest points by the time the two objects hit (unit: meters)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public float mSpeculativeContactDistance;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L50">Jolt/Physics/PhysicsSettings.h:50</see>
|
||||
/// <br/>
|
||||
/// <c>float mPenetrationSlop = 0.02f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// How much bodies are allowed to sink into each other (unit: meters)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(20)]
|
||||
public float mPenetrationSlop;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L53">Jolt/Physics/PhysicsSettings.h:53</see>
|
||||
/// <br/>
|
||||
/// <c>float mLinearCastThreshold = 0.75f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Fraction of its inner radius a body must move per step to enable casting for the LinearCast motion
|
||||
/// quality
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(24)]
|
||||
public float mLinearCastThreshold;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L56">Jolt/Physics/PhysicsSettings.h:56</see>
|
||||
/// <br/>
|
||||
/// <c>float mLinearCastMaxPenetration = 0.25f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Fraction of its inner radius a body may penetrate another body for the LinearCast motion quality
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(28)]
|
||||
public float mLinearCastMaxPenetration;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L59">Jolt/Physics/PhysicsSettings.h:59</see>
|
||||
/// <br/>
|
||||
/// <c>float mManifoldTolerance = 1.0e-3f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Max distance to use to determine if two points are on the same plane for determining the contact
|
||||
/// manifold between two shape faces (unit: meter)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(32)]
|
||||
public float mManifoldTolerance;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L62">Jolt/Physics/PhysicsSettings.h:62</see>
|
||||
/// <br/>
|
||||
/// <c>float mMaxPenetrationDistance = 0.2f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Maximum distance to correct in a single iteration when solving position constraints (unit: meters)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(36)]
|
||||
public float mMaxPenetrationDistance;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 1 mm
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L65">Jolt/Physics/PhysicsSettings.h:65</see>
|
||||
/// <br/>
|
||||
/// <c>float mBodyPairCacheMaxDeltaPositionSq = Square(0.001f)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Maximum relative delta position for body pairs to be able to reuse collision results from last frame
|
||||
/// (units: meter^2)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(40)]
|
||||
public float mBodyPairCacheMaxDeltaPositionSq;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// cos(2 degrees / 2)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L68">Jolt/Physics/PhysicsSettings.h:68</see>
|
||||
/// <br/>
|
||||
/// <c>float mBodyPairCacheCosMaxDeltaRotationDiv2 = 0.99984769515639123915701155881391f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Maximum relative delta orientation for body pairs to be able to reuse collision results from last frame,
|
||||
/// stored as cos(max angle / 2)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(44)]
|
||||
public float mBodyPairCacheCosMaxDeltaRotationDiv2;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// cos(5 degree)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L71">Jolt/Physics/PhysicsSettings.h:71</see>
|
||||
/// <br/>
|
||||
/// <c>float mContactNormalCosMaxDeltaRotation = 0.99619469809174553229501040247389f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Maximum angle between normals that allows manifolds between different sub shapes of the same body pair
|
||||
/// to be combined
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(48)]
|
||||
public float mContactNormalCosMaxDeltaRotation;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 1 cm
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L74">Jolt/Physics/PhysicsSettings.h:74</see>
|
||||
/// <br/>
|
||||
/// <c>float mContactPointPreserveLambdaMaxDistSq = Square(0.01f)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Maximum allowed distance between old and new contact point to preserve contact forces for warm start
|
||||
/// (units: meter^2)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(52)]
|
||||
public float mContactPointPreserveLambdaMaxDistSq;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L78">Jolt/Physics/PhysicsSettings.h:78</see>
|
||||
/// <br/>
|
||||
/// <c>uint mNumVelocitySteps = 10</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Number of solver velocity iterations to run
|
||||
/// Note that this needs to be &gt;= 2 in order for friction to work (friction is applied using the non-penetration impulse from the previous iteration)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(56)]
|
||||
public uint mNumVelocitySteps;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L81">Jolt/Physics/PhysicsSettings.h:81</see>
|
||||
/// <br/>
|
||||
/// <c>uint mNumPositionSteps = 2</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Number of solver position iterations to run
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(60)]
|
||||
public uint mNumPositionSteps;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L86">Jolt/Physics/PhysicsSettings.h:86</see>
|
||||
/// <br/>
|
||||
/// <c>float mMinVelocityForRestitution = 1.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Minimal velocity needed before a collision can be elastic. If the relative velocity between colliding objects
|
||||
/// in the direction of the contact normal is lower than this, the restitution will be zero regardless of the configured
|
||||
/// value. This lets an object settle sooner. Must be a positive number. (unit: m)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(64)]
|
||||
public float mMinVelocityForRestitution;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L89">Jolt/Physics/PhysicsSettings.h:89</see>
|
||||
/// <br/>
|
||||
/// <c>float mTimeBeforeSleep = 0.5f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Time before object is allowed to go to sleep (unit: seconds)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(68)]
|
||||
public float mTimeBeforeSleep;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L96">Jolt/Physics/PhysicsSettings.h:96</see>
|
||||
/// <br/>
|
||||
/// <c>float mPointVelocitySleepThreshold = 0.03f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// To detect if an object is sleeping, we use 3 points:
|
||||
/// - The center of mass.
|
||||
/// - The centers of the faces of the bounding box that are furthest away from the center.
|
||||
/// The movement of these points is tracked and if the velocity of all 3 points is lower than this value,
|
||||
/// the object is allowed to go to sleep. Must be a positive number. (unit: m/s)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(72)]
|
||||
public float mPointVelocitySleepThreshold;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L99">Jolt/Physics/PhysicsSettings.h:99</see>
|
||||
/// <br/>
|
||||
/// <c>bool mDeterministicSimulation = true</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// By default the simulation is deterministic, it is possible to turn this off by setting this setting to
|
||||
/// false. This will make the simulation run faster but it will no longer be deterministic.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(76)]
|
||||
public Brutal.Bool8 mDeterministicSimulation;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L105">Jolt/Physics/PhysicsSettings.h:105</see>
|
||||
/// <br/>
|
||||
/// <c>bool mConstraintWarmStart = true</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Whether or not to use warm starting for constraints (initially applying previous frames impulses)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(77)]
|
||||
public Brutal.Bool8 mConstraintWarmStart;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L108">Jolt/Physics/PhysicsSettings.h:108</see>
|
||||
/// <br/>
|
||||
/// <c>bool mUseBodyPairContactCache = true</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Whether or not to use the body pair cache, which removes the need for narrow phase collision detection
|
||||
/// when orientation between two bodies didn't change
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(78)]
|
||||
public Brutal.Bool8 mUseBodyPairContactCache;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L111">Jolt/Physics/PhysicsSettings.h:111</see>
|
||||
/// <br/>
|
||||
/// <c>bool mUseManifoldReduction = true</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Whether or not to reduce manifolds with similar contact normals into one contact manifold (see
|
||||
/// description at Body::SetUseManifoldReduction)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(79)]
|
||||
public Brutal.Bool8 mUseManifoldReduction;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L114">Jolt/Physics/PhysicsSettings.h:114</see>
|
||||
/// <br/>
|
||||
/// <c>bool mUseLargeIslandSplitter = true</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// If we split up large islands into smaller parallel batches of work (to improve performance)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(80)]
|
||||
public Brutal.Bool8 mUseLargeIslandSplitter;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L117">Jolt/Physics/PhysicsSettings.h:117</see>
|
||||
/// <br/>
|
||||
/// <c>bool mAllowSleeping = true</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// If objects can go to sleep or not
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(81)]
|
||||
public Brutal.Bool8 mAllowSleeping;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/PhysicsSettings.h#L120">Jolt/Physics/PhysicsSettings.h:120</see>
|
||||
/// <br/>
|
||||
/// <c>bool mCheckActiveEdges = true</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// When false, we prevent collision against non-active (shared) edges. Mainly for debugging the algorithm.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(82)]
|
||||
public Brutal.Bool8 mCheckActiveEdges;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/ConvexSupport.h#L85">Jolt/Geometry/ConvexSupport.h:85</see>
|
||||
/// <br/>
|
||||
/// <c>struct PointConvexSupport</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Class that wraps a point so that it can be used with convex collision detection
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16)]
|
||||
public struct PointConvexSupport
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/ConvexSupport.h#L93">Jolt/Geometry/ConvexSupport.h:93</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mPoint</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public float3 mPoint;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/ConvexSupport.h#L97">Jolt/Geometry/ConvexSupport.h:97</see>
|
||||
/// <br/>
|
||||
/// <c>struct TriangleConvexSupport</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Class that wraps a triangle so that it can used with convex collision detection
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48)]
|
||||
public struct TriangleConvexSupport
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/ConvexSupport.h#L142">Jolt/Geometry/ConvexSupport.h:142</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mV1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The three vertices of the triangle
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public float3 mV1;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/ConvexSupport.h#L143">Jolt/Geometry/ConvexSupport.h:143</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mV2</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(16)]
|
||||
public float3 mV2;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/ConvexSupport.h#L144">Jolt/Geometry/ConvexSupport.h:144</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mV3</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(32)]
|
||||
public float3 mV3;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue