// // 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 { [LibraryImport("jolt", EntryPoint = "PhysicsScene_Create")] public static partial PhysicsScene PhysicsScene_Create(); /// /// /// C++: /// Jolt/Physics/PhysicsScene.h:23 ///
/// void AddBody(const BodyCreationSettings &inBody) ///
///
/// /// /// Add a body to the scene /// /// [LibraryImport("jolt", EntryPoint = "PhysicsScene_AddBody")] public static partial void PhysicsScene_AddBody(PhysicsScene self, BodyCreationSettings body); /// /// /// C++: /// Jolt/Physics/PhysicsScene.h:32 ///
/// void AddConstraint(const TwoBodyConstraintSettings *inConstraint, uint32 inBody1, uint32 inBody2) ///
///
/// /// /// Add a constraint to the scene /// @param inConstraint Constraint settings /// @param inBody1 Index in the bodies list of first body to attach constraint to /// @param inBody2 Index in the bodies list of the second body to attach constraint to /// /// [LibraryImport("jolt", EntryPoint = "PhysicsScene_AddConstraint")] public static partial void PhysicsScene_AddConstraint(PhysicsScene self, TwoBodyConstraintSettings constraint, uint body1, uint body2); /// /// /// C++: /// Jolt/Physics/PhysicsScene.h:35 ///
/// void AddSoftBody(const SoftBodyCreationSettings &inSoftBody) ///
///
/// /// /// Add a soft body to the scene /// /// [LibraryImport("jolt", EntryPoint = "PhysicsScene_AddSoftBody")] public static partial void PhysicsScene_AddSoftBody(PhysicsScene self, SoftBodyCreationSettings softBody); /// /// /// C++: /// Jolt/Physics/PhysicsScene.h:38 ///
/// size_t GetNumBodies() const ///
///
/// /// /// Get number of bodies in this scene /// /// [LibraryImport("jolt", EntryPoint = "PhysicsScene_GetNumBodies")] public static partial nuint PhysicsScene_GetNumBodies(PhysicsScene self); /// /// /// C++: /// Jolt/Physics/PhysicsScene.h:59 ///
/// size_t GetNumConstraints() const ///
///
/// /// /// Get number of constraints in this scene /// /// [LibraryImport("jolt", EntryPoint = "PhysicsScene_GetNumConstraints")] public static partial nuint PhysicsScene_GetNumConstraints(PhysicsScene self); /// /// /// C++: /// Jolt/Physics/PhysicsScene.h:66 ///
/// size_t GetNumSoftBodies() const ///
///
/// /// /// Get number of bodies in this scene /// /// [LibraryImport("jolt", EntryPoint = "PhysicsScene_GetNumSoftBodies")] public static partial nuint PhysicsScene_GetNumSoftBodies(PhysicsScene self); /// /// /// C++: /// Jolt/Physics/PhysicsScene.h:73 ///
/// bool CreateBodies(PhysicsSystem *inSystem) const ///
///
/// /// /// Instantiate all bodies, returns false if not all bodies could be created /// /// [LibraryImport("jolt", EntryPoint = "PhysicsScene_CreateBodies")] public static partial Brutal.Bool8 PhysicsScene_CreateBodies(PhysicsScene self, PhysicsSystem system); /// /// /// C++: /// Jolt/Physics/PhysicsScene.h:77 ///
/// bool FixInvalidScales() ///
///
/// /// /// Go through all body creation settings and fix shapes that are scaled incorrectly (note this will change the scene a bit). /// @return False when not all scales could be fixed. /// /// [LibraryImport("jolt", EntryPoint = "PhysicsScene_FixInvalidScales")] public static partial Brutal.Bool8 PhysicsScene_FixInvalidScales(PhysicsScene self); /// /// /// C++: /// Jolt/Physics/PhysicsScene.h:83 ///
/// void SaveBinaryState(StreamOut &inStream, bool inSaveShapes, bool inSaveGroupFilter) const ///
///
/// /// /// Saves the state of this object in binary form to inStream. /// @param inStream The stream to save the state to /// @param inSaveShapes If the shapes should be saved as well (these could be shared between physics scenes, in which case the calling application may want to write custom code to restore them) /// @param inSaveGroupFilter If the group filter should be saved as well (these could be shared) /// /// [LibraryImport("jolt", EntryPoint = "PhysicsScene_SaveBinaryState")] public static partial void PhysicsScene_SaveBinaryState(PhysicsScene self, StreamOut stream, Brutal.Bool8 saveShapes, Brutal.Bool8 saveGroupFilter); /// /// /// C++: /// Jolt/Physics/PhysicsScene.h:88 ///
/// static PhysicsSceneResult sRestoreFromBinaryState(StreamIn &inStream) ///
///
/// /// /// Restore a saved scene from inStream /// /// /// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message. /// /// [LibraryImport("jolt", EntryPoint = "PhysicsScene_sRestoreFromBinaryState")] public static partial PhysicsScene PhysicsScene_sRestoreFromBinaryState(StreamIn stream); /// /// /// C++: /// Jolt/Physics/PhysicsScene.h:91 ///
/// void FromPhysicsSystem(const PhysicsSystem *inSystem) ///
///
/// /// /// For debugging purposes: Construct a scene from the current state of the physics system /// /// [LibraryImport("jolt", EntryPoint = "PhysicsScene_FromPhysicsSystem")] public static partial void PhysicsScene_FromPhysicsSystem(PhysicsScene self, PhysicsSystem system); [LibraryImport("jolt", EntryPoint = "PhysicsScene_AddRef")] public static partial void PhysicsScene_AddRef(PhysicsScene self); [LibraryImport("jolt", EntryPoint = "PhysicsScene_Release")] public static partial void PhysicsScene_Release(PhysicsScene self); [LibraryImport("jolt", EntryPoint = "PhysicsScene_GetRefCount")] public static partial uint PhysicsScene_GetRefCount(PhysicsScene self); } } }