mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
52
Brutal.Jolt/Generated/Classes/BodyLockMultiRead.gen.cs
Normal file
52
Brutal.Jolt/Generated/Classes/BodyLockMultiRead.gen.cs
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A multi body lock takes a number of body IDs and locks the underlying bodies so that other threads cannot
|
||||
/// access its members
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Body/BodyLockMulti.h#L109">Jolt/Physics/Body/BodyLockMulti.h:109</see>
|
||||
/// <br/>
|
||||
/// <c>class BodyLockMultiRead : public BodyLockMultiBase<false, const Body></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// A multi body lock takes a number of body IDs and locks the underlying bodies 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
|
||||
/// const BodyID *body_id = ...; // Obtain IDs to bodies
|
||||
/// int num_body_ids = ...;
|
||||
///
|
||||
/// // Scoped lock
|
||||
/// {
|
||||
/// BodyLockMultiRead lock(lock_interface, body_ids, num_body_ids);
|
||||
/// for (int i = 0; i < num_body_ids; ++i)
|
||||
/// {
|
||||
/// const Body *body = lock.GetBody(i);
|
||||
/// if (body != nullptr)
|
||||
/// {
|
||||
/// const Body &body = lock.Body();
|
||||
///
|
||||
/// // Do something with body
|
||||
/// ...
|
||||
/// }
|
||||
/// }
|
||||
/// }
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct BodyLockMultiRead { }
|
||||
}
|
||||
Loading…
Reference in a new issue