// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { public static partial class Jolt { public static unsafe partial class PInvoke { /// /// /// C++: /// Jolt/Physics/Collision/BroadPhase/BroadPhase.h:32 ///
/// virtual void Init(BodyManager *inBodyManager, const BroadPhaseLayerInterface &inLayerInterface) ///
///
/// /// /// Initialize the broadphase. /// @param inBodyManager The body manager singleton /// @param inLayerInterface Interface that maps object layers to broadphase layers. /// Note that the broadphase takes a pointer to the data inside inObjectToBroadPhaseLayer so this object should remain static. /// /// [LibraryImport("jolt", EntryPoint = "BroadPhase_Init")] public static partial void BroadPhase_Init(BroadPhase self, BodyManager bodyManager, BroadPhaseLayerInterface layerInterface); /// /// /// C++: /// Jolt/Physics/Collision/BroadPhase/BroadPhase.h:35 ///
/// virtual void Optimize() ///
///
/// /// /// Should be called after many objects have been inserted to make the broadphase more efficient, /// usually done on startup only /// /// [LibraryImport("jolt", EntryPoint = "BroadPhase_Optimize")] public static partial void BroadPhase_Optimize(BroadPhase self); /// /// /// C++: /// Jolt/Physics/Collision/BroadPhase/BroadPhase.h:38 ///
/// virtual void FrameSync() ///
///
/// /// /// Must be called just before updating the broadphase when none of the body mutexes are locked /// /// [LibraryImport("jolt", EntryPoint = "BroadPhase_FrameSync")] public static partial void BroadPhase_FrameSync(BroadPhase self); /// /// /// C++: /// Jolt/Physics/Collision/BroadPhase/BroadPhase.h:41 ///
/// virtual void LockModifications() ///
///
/// /// /// Must be called before UpdatePrepare to prevent modifications from being made to the tree /// /// [LibraryImport("jolt", EntryPoint = "BroadPhase_LockModifications")] public static partial void BroadPhase_LockModifications(BroadPhase self); /// /// /// C++: /// Jolt/Physics/Collision/BroadPhase/BroadPhase.h:54 ///
/// virtual void UnlockModifications() ///
///
/// /// /// Must be called after UpdateFinalize to allow modifications to the broadphase /// /// [LibraryImport("jolt", EntryPoint = "BroadPhase_UnlockModifications")] public static partial void BroadPhase_UnlockModifications(BroadPhase self); /// /// /// C++: /// Jolt/Physics/Collision/BroadPhase/BroadPhase.h:75 ///
/// virtual void RemoveBodies(BodyID *ioBodies, int inNumber) = 0 ///
///
/// /// /// Remove inNumber bodies in ioBodies from the broadphase. /// ioBodies may be shuffled around by this function. /// /// [LibraryImport("jolt", EntryPoint = "BroadPhase_RemoveBodies")] public static partial void BroadPhase_RemoveBodies(BroadPhase self, uint* bodies, int number); /// /// /// C++: /// Jolt/Physics/Collision/BroadPhase/BroadPhase.h:79 ///
/// virtual void NotifyBodiesAABBChanged(BodyID *ioBodies, int inNumber, bool inTakeLock = true) = 0 ///
///
/// /// /// Call whenever the aabb of a body changes (can change order of ioBodies array) /// inTakeLock should be false if we're between LockModifications/UnlockModifications, in which case care needs to be taken to not call this between UpdatePrepare/UpdateFinalize /// /// [LibraryImport("jolt", EntryPoint = "BroadPhase_NotifyBodiesAABBChanged")] public static partial void BroadPhase_NotifyBodiesAABBChanged(BroadPhase self, uint* bodies, int number, Brutal.Bool8 takeLock); /// /// /// C++: /// Jolt/Physics/Collision/BroadPhase/BroadPhase.h:82 ///
/// virtual void NotifyBodiesLayerChanged(BodyID *ioBodies, int inNumber) = 0 ///
///
/// /// /// Call whenever the layer (and optionally the aabb as well) of a body changes (can change order of /// ioBodies array) /// /// [LibraryImport("jolt", EntryPoint = "BroadPhase_NotifyBodiesLayerChanged")] public static partial void BroadPhase_NotifyBodiesLayerChanged(BroadPhase self, uint* bodies, int number); [LibraryImport("jolt", EntryPoint = "BroadPhase_AsBroadPhaseQuery")] public static partial BroadPhaseQuery BroadPhase_AsBroadPhaseQuery(BroadPhase self); } } }