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
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,43 @@
|
|||
// <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/BodyLock.h#L100">Jolt/Physics/Body/BodyLock.h:100</see>
|
||||
/// <br/>
|
||||
/// <c>class BodyLockRead : public BodyLockBase<false, const Body></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// A body lock takes a body ID and locks the underlying body so that other threads cannot access its members
|
||||
///
|
||||
/// The common usage pattern is:
|
||||
///
|
||||
/// BodyLockInterface lock_interface = physics_system.GetBodyLockInterface(); // Or non-locking interface if the lock is already taken
|
||||
/// BodyID body_id = ...; // Obtain ID to body
|
||||
///
|
||||
/// // Scoped lock
|
||||
/// {
|
||||
/// BodyLockRead lock(lock_interface, body_id);
|
||||
/// if (lock.Succeeded()) // body_id may no longer be valid
|
||||
/// {
|
||||
/// const Body &amp;body = lock.GetBody();
|
||||
///
|
||||
/// // Do something with body
|
||||
/// ...
|
||||
/// }
|
||||
/// }
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct BodyLockRead
|
||||
{
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue