// // 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/Body/BodyCreationSettings.h:36 ///
/// BodyCreationSettings() = default ///
///
/// /// /// Constructor /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Create")] public static partial BodyCreationSettings BodyCreationSettings_Create(); /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:37 ///
/// BodyCreationSettings(const ShapeSettings *inShape, RVec3Arg inPosition, QuatArg inRotation, EMotionType inMotionType, ObjectLayer inObjectLayer) ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Create_2")] public static partial BodyCreationSettings BodyCreationSettings_Create_2(ShapeSettings shape, float3 position, floatQuat rotation, EMotionType motionType, ushort objectLayer); /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:38 ///
/// BodyCreationSettings(const Shape *inShape, RVec3Arg inPosition, QuatArg inRotation, EMotionType inMotionType, ObjectLayer inObjectLayer) ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Create_3")] public static partial BodyCreationSettings BodyCreationSettings_Create_3(Shape shape, float3 position, floatQuat rotation, EMotionType motionType, ushort objectLayer); [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Destroy")] public static partial void BodyCreationSettings_Destroy(BodyCreationSettings self); /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:41 ///
/// const ShapeSettings * GetShapeSettings() const ///
///
/// /// /// Access to the shape settings object. This contains serializable (non-runtime optimized) information /// about the Shape. /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetShapeSettings")] public static partial ShapeSettings BodyCreationSettings_GetShapeSettings(BodyCreationSettings self); /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:42 ///
/// void SetShapeSettings(const ShapeSettings *inShape) ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetShapeSettings")] public static partial void BodyCreationSettings_SetShapeSettings(BodyCreationSettings self, ShapeSettings shape); /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:45 ///
/// Shape::ShapeResult ConvertShapeSettings() ///
///
/// /// /// Convert ShapeSettings object into a Shape object. This will free the ShapeSettings object and make /// the object ready for runtime. Serialization is no longer possible after this. /// /// /// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message. /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_ConvertShapeSettings")] public static partial Shape BodyCreationSettings_ConvertShapeSettings(BodyCreationSettings self); /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:48 ///
/// const Shape * GetShape() const ///
///
/// /// /// Access to the run-time shape object. Will convert from ShapeSettings object if needed. /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetShape")] public static partial Shape BodyCreationSettings_GetShape(BodyCreationSettings self); /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:49 ///
/// void SetShape(const Shape *inShape) ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetShape")] public static partial void BodyCreationSettings_SetShape(BodyCreationSettings self, Shape shape); /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:52 ///
/// bool HasMassProperties() const ///
///
/// /// /// Check if the mass properties of this body will be calculated (only relevant for kinematic or dynamic /// objects that need a MotionProperties object) /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_HasMassProperties")] public static partial Brutal.Bool8 BodyCreationSettings_HasMassProperties(BodyCreationSettings self); /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:58 ///
/// void SaveBinaryState(StreamOut &inStream) const ///
///
/// /// /// Saves the state of this object in binary form to inStream. Doesn't store the shape nor the group /// filter. /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SaveBinaryState")] public static partial void BodyCreationSettings_SaveBinaryState(BodyCreationSettings self, StreamOut stream); /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:61 ///
/// void RestoreBinaryState(StreamIn &inStream) ///
///
/// /// /// Restore the state of this object from inStream. Doesn't restore the shape nor the group filter. /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_RestoreBinaryState")] public static partial void BodyCreationSettings_RestoreBinaryState(BodyCreationSettings self, StreamIn stream); /// /// /// Position of the body (not of the center of mass) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:80 ///
/// RVec3 mPosition = RVec3::sZero() ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetPosition")] public static partial float3 BodyCreationSettings_GetPosition(BodyCreationSettings self); /// /// /// Position of the body (not of the center of mass) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:80 ///
/// RVec3 mPosition = RVec3::sZero() ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetPosition")] public static partial void BodyCreationSettings_SetPosition(BodyCreationSettings self, float3 value); /// /// /// Rotation of the body /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:81 ///
/// Quat mRotation = Quat::sIdentity() ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetRotation")] public static partial floatQuat BodyCreationSettings_GetRotation(BodyCreationSettings self); /// /// /// Rotation of the body /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:81 ///
/// Quat mRotation = Quat::sIdentity() ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetRotation")] public static partial void BodyCreationSettings_SetRotation(BodyCreationSettings self, floatQuat value); /// /// /// World space linear velocity of the center of mass (m/s) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:82 ///
/// Vec3 mLinearVelocity = Vec3::sZero() ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetLinearVelocity")] public static partial float3 BodyCreationSettings_GetLinearVelocity(BodyCreationSettings self); /// /// /// World space linear velocity of the center of mass (m/s) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:82 ///
/// Vec3 mLinearVelocity = Vec3::sZero() ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetLinearVelocity")] public static partial void BodyCreationSettings_SetLinearVelocity(BodyCreationSettings self, float3 value); /// /// /// World space angular velocity (rad/s) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:83 ///
/// Vec3 mAngularVelocity = Vec3::sZero() ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAngularVelocity")] public static partial float3 BodyCreationSettings_GetAngularVelocity(BodyCreationSettings self); /// /// /// World space angular velocity (rad/s) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:83 ///
/// Vec3 mAngularVelocity = Vec3::sZero() ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAngularVelocity")] public static partial void BodyCreationSettings_SetAngularVelocity(BodyCreationSettings self, float3 value); /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:86 ///
/// uint64 mUserData = 0 ///
///
/// /// /// User data value (can be used by application) /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetUserData")] public static partial ulong BodyCreationSettings_GetUserData(BodyCreationSettings self); /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:86 ///
/// uint64 mUserData = 0 ///
///
/// /// /// User data value (can be used by application) /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetUserData")] public static partial void BodyCreationSettings_SetUserData(BodyCreationSettings self, ulong value); /// /// /// The collision layer this body belongs to (determines if two objects can collide) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:89 ///
/// ObjectLayer mObjectLayer = 0 ///
///
/// /// /// @name Collision settings /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetObjectLayer")] public static partial ushort BodyCreationSettings_GetObjectLayer(BodyCreationSettings self); /// /// /// The collision layer this body belongs to (determines if two objects can collide) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:89 ///
/// ObjectLayer mObjectLayer = 0 ///
///
/// /// /// @name Collision settings /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetObjectLayer")] public static partial void BodyCreationSettings_SetObjectLayer(BodyCreationSettings self, ushort value); /// /// /// Motion type, determines if the object is static, dynamic or kinematic /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:93 ///
/// EMotionType mMotionType = EMotionType::Dynamic ///
///
/// /// /// @name Simulation properties /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMotionType")] public static partial EMotionType BodyCreationSettings_GetMotionType(BodyCreationSettings self); /// /// /// Motion type, determines if the object is static, dynamic or kinematic /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:93 ///
/// EMotionType mMotionType = EMotionType::Dynamic ///
///
/// /// /// @name Simulation properties /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMotionType")] public static partial void BodyCreationSettings_SetMotionType(BodyCreationSettings self, EMotionType value); /// /// /// Which degrees of freedom this body has (can be used to limit simulation to 2D) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:94 ///
/// EAllowedDOFs mAllowedDOFs = EAllowedDOFs::All ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAllowedDOFs")] public static partial EAllowedDOFs BodyCreationSettings_GetAllowedDOFs(BodyCreationSettings self); /// /// /// Which degrees of freedom this body has (can be used to limit simulation to 2D) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:94 ///
/// EAllowedDOFs mAllowedDOFs = EAllowedDOFs::All ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAllowedDOFs")] public static partial void BodyCreationSettings_SetAllowedDOFs(BodyCreationSettings self, EAllowedDOFs value); /// /// /// When this body is created as static, this setting tells the system to create a MotionProperties /// object so that the object can be switched to kinematic or dynamic /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:95 ///
/// bool mAllowDynamicOrKinematic = false ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAllowDynamicOrKinematic")] public static partial Brutal.Bool8 BodyCreationSettings_GetAllowDynamicOrKinematic(BodyCreationSettings self); /// /// /// When this body is created as static, this setting tells the system to create a MotionProperties /// object so that the object can be switched to kinematic or dynamic /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:95 ///
/// bool mAllowDynamicOrKinematic = false ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAllowDynamicOrKinematic")] public static partial void BodyCreationSettings_SetAllowDynamicOrKinematic(BodyCreationSettings self, Brutal.Bool8 value); /// /// /// If this body is a sensor. A sensor will receive collision callbacks, but will not cause any /// collision responses and can be used as a trigger volume. See description at Body::SetIsSensor. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:96 ///
/// bool mIsSensor = false ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetIsSensor")] public static partial Brutal.Bool8 BodyCreationSettings_GetIsSensor(BodyCreationSettings self); /// /// /// If this body is a sensor. A sensor will receive collision callbacks, but will not cause any /// collision responses and can be used as a trigger volume. See description at Body::SetIsSensor. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:96 ///
/// bool mIsSensor = false ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetIsSensor")] public static partial void BodyCreationSettings_SetIsSensor(BodyCreationSettings self, Brutal.Bool8 value); /// /// /// If kinematic objects can generate contact points against other kinematic or static objects. See /// description at Body::SetCollideKinematicVsNonDynamic. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:97 ///
/// bool mCollideKinematicVsNonDynamic = false ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetCollideKinematicVsNonDynamic")] public static partial Brutal.Bool8 BodyCreationSettings_GetCollideKinematicVsNonDynamic(BodyCreationSettings self); /// /// /// If kinematic objects can generate contact points against other kinematic or static objects. See /// description at Body::SetCollideKinematicVsNonDynamic. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:97 ///
/// bool mCollideKinematicVsNonDynamic = false ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetCollideKinematicVsNonDynamic")] public static partial void BodyCreationSettings_SetCollideKinematicVsNonDynamic(BodyCreationSettings self, Brutal.Bool8 value); /// /// /// If this body should use manifold reduction (see description at Body::SetUseManifoldReduction) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:98 ///
/// bool mUseManifoldReduction = true ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetUseManifoldReduction")] public static partial Brutal.Bool8 BodyCreationSettings_GetUseManifoldReduction(BodyCreationSettings self); /// /// /// If this body should use manifold reduction (see description at Body::SetUseManifoldReduction) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:98 ///
/// bool mUseManifoldReduction = true ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetUseManifoldReduction")] public static partial void BodyCreationSettings_SetUseManifoldReduction(BodyCreationSettings self, Brutal.Bool8 value); /// /// /// Set to indicate that the gyroscopic force should be applied to this body (aka Dzhanibekov effect, /// see https://en.wikipedia.org/wiki/Tennis_racket_theorem) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:99 ///
/// bool mApplyGyroscopicForce = false ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetApplyGyroscopicForce")] public static partial Brutal.Bool8 BodyCreationSettings_GetApplyGyroscopicForce(BodyCreationSettings self); /// /// /// Set to indicate that the gyroscopic force should be applied to this body (aka Dzhanibekov effect, /// see https://en.wikipedia.org/wiki/Tennis_racket_theorem) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:99 ///
/// bool mApplyGyroscopicForce = false ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetApplyGyroscopicForce")] public static partial void BodyCreationSettings_SetApplyGyroscopicForce(BodyCreationSettings self, Brutal.Bool8 value); /// /// /// Motion quality, or how well it detects collisions when it has a high velocity /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:100 ///
/// EMotionQuality mMotionQuality = EMotionQuality::Discrete ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMotionQuality")] public static partial EMotionQuality BodyCreationSettings_GetMotionQuality(BodyCreationSettings self); /// /// /// Motion quality, or how well it detects collisions when it has a high velocity /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:100 ///
/// EMotionQuality mMotionQuality = EMotionQuality::Discrete ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMotionQuality")] public static partial void BodyCreationSettings_SetMotionQuality(BodyCreationSettings self, EMotionQuality value); /// /// /// Set to indicate that extra effort should be made to try to remove ghost contacts (collisions with /// internal edges of a mesh). This is more expensive but makes bodies move smoother over a mesh with /// convex edges. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:101 ///
/// bool mEnhancedInternalEdgeRemoval = false ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetEnhancedInternalEdgeRemoval")] public static partial Brutal.Bool8 BodyCreationSettings_GetEnhancedInternalEdgeRemoval(BodyCreationSettings self); /// /// /// Set to indicate that extra effort should be made to try to remove ghost contacts (collisions with /// internal edges of a mesh). This is more expensive but makes bodies move smoother over a mesh with /// convex edges. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:101 ///
/// bool mEnhancedInternalEdgeRemoval = false ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetEnhancedInternalEdgeRemoval")] public static partial void BodyCreationSettings_SetEnhancedInternalEdgeRemoval(BodyCreationSettings self, Brutal.Bool8 value); /// /// /// If this body can go to sleep or not /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:102 ///
/// bool mAllowSleeping = true ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAllowSleeping")] public static partial Brutal.Bool8 BodyCreationSettings_GetAllowSleeping(BodyCreationSettings self); /// /// /// If this body can go to sleep or not /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:102 ///
/// bool mAllowSleeping = true ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAllowSleeping")] public static partial void BodyCreationSettings_SetAllowSleeping(BodyCreationSettings self, Brutal.Bool8 value); /// /// /// Friction of the body (dimensionless number, usually between 0 and 1, 0 = no friction, 1 = friction /// force equals force that presses the two bodies together). Note that bodies can have negative /// friction but the combined friction (see PhysicsSystem::SetCombineFriction) should never go below /// zero. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:103 ///
/// float mFriction = 0.2f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetFriction")] public static partial float BodyCreationSettings_GetFriction(BodyCreationSettings self); /// /// /// Friction of the body (dimensionless number, usually between 0 and 1, 0 = no friction, 1 = friction /// force equals force that presses the two bodies together). Note that bodies can have negative /// friction but the combined friction (see PhysicsSystem::SetCombineFriction) should never go below /// zero. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:103 ///
/// float mFriction = 0.2f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetFriction")] public static partial void BodyCreationSettings_SetFriction(BodyCreationSettings self, float value); /// /// /// Restitution of body (dimensionless number, usually between 0 and 1, 0 = completely inelastic /// collision response, 1 = completely elastic collision response). Note that bodies can have negative /// restitution but the combined restitution (see PhysicsSystem::SetCombineRestitution) should never go /// below zero. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:104 ///
/// float mRestitution = 0.0f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetRestitution")] public static partial float BodyCreationSettings_GetRestitution(BodyCreationSettings self); /// /// /// Restitution of body (dimensionless number, usually between 0 and 1, 0 = completely inelastic /// collision response, 1 = completely elastic collision response). Note that bodies can have negative /// restitution but the combined restitution (see PhysicsSystem::SetCombineRestitution) should never go /// below zero. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:104 ///
/// float mRestitution = 0.0f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetRestitution")] public static partial void BodyCreationSettings_SetRestitution(BodyCreationSettings self, float value); /// /// /// Linear damping: dv/dt = -c * v. c. Value should be zero or positive and is usually close to 0. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:105 ///
/// float mLinearDamping = 0.05f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetLinearDamping")] public static partial float BodyCreationSettings_GetLinearDamping(BodyCreationSettings self); /// /// /// Linear damping: dv/dt = -c * v. c. Value should be zero or positive and is usually close to 0. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:105 ///
/// float mLinearDamping = 0.05f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetLinearDamping")] public static partial void BodyCreationSettings_SetLinearDamping(BodyCreationSettings self, float value); /// /// /// Angular damping: dw/dt = -c * w. c. Value should be zero or positive and is usually close to 0. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:106 ///
/// float mAngularDamping = 0.05f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAngularDamping")] public static partial float BodyCreationSettings_GetAngularDamping(BodyCreationSettings self); /// /// /// Angular damping: dw/dt = -c * w. c. Value should be zero or positive and is usually close to 0. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:106 ///
/// float mAngularDamping = 0.05f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAngularDamping")] public static partial void BodyCreationSettings_SetAngularDamping(BodyCreationSettings self, float value); /// /// /// Maximum linear velocity that this body can reach (m/s) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:107 ///
/// float mMaxLinearVelocity = 500.0f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMaxLinearVelocity")] public static partial float BodyCreationSettings_GetMaxLinearVelocity(BodyCreationSettings self); /// /// /// Maximum linear velocity that this body can reach (m/s) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:107 ///
/// float mMaxLinearVelocity = 500.0f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMaxLinearVelocity")] public static partial void BodyCreationSettings_SetMaxLinearVelocity(BodyCreationSettings self, float value); /// /// /// Maximum angular velocity that this body can reach (rad/s) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:108 ///
/// float mMaxAngularVelocity = 0.25f * JPH_PI * 60.0f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMaxAngularVelocity")] public static partial float BodyCreationSettings_GetMaxAngularVelocity(BodyCreationSettings self); /// /// /// Maximum angular velocity that this body can reach (rad/s) /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:108 ///
/// float mMaxAngularVelocity = 0.25f * JPH_PI * 60.0f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMaxAngularVelocity")] public static partial void BodyCreationSettings_SetMaxAngularVelocity(BodyCreationSettings self, float value); /// /// /// Value to multiply gravity with for this body /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:109 ///
/// float mGravityFactor = 1.0f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetGravityFactor")] public static partial float BodyCreationSettings_GetGravityFactor(BodyCreationSettings self); /// /// /// Value to multiply gravity with for this body /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:109 ///
/// float mGravityFactor = 1.0f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetGravityFactor")] public static partial void BodyCreationSettings_SetGravityFactor(BodyCreationSettings self, float value); /// /// /// Used only when this body is dynamic and colliding. Override for the number of solver velocity /// iterations to run, 0 means use the default in PhysicsSettings::mNumVelocitySteps. The number of /// iterations to use is the max of all contacts and constraints in the island. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:110 ///
/// uint mNumVelocityStepsOverride = 0 ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetNumVelocityStepsOverride")] public static partial uint BodyCreationSettings_GetNumVelocityStepsOverride(BodyCreationSettings self); /// /// /// Used only when this body is dynamic and colliding. Override for the number of solver velocity /// iterations to run, 0 means use the default in PhysicsSettings::mNumVelocitySteps. The number of /// iterations to use is the max of all contacts and constraints in the island. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:110 ///
/// uint mNumVelocityStepsOverride = 0 ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetNumVelocityStepsOverride")] public static partial void BodyCreationSettings_SetNumVelocityStepsOverride(BodyCreationSettings self, uint value); /// /// /// Used only when this body is dynamic and colliding. Override for the number of solver position /// iterations to run, 0 means use the default in PhysicsSettings::mNumPositionSteps. The number of /// iterations to use is the max of all contacts and constraints in the island. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:111 ///
/// uint mNumPositionStepsOverride = 0 ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetNumPositionStepsOverride")] public static partial uint BodyCreationSettings_GetNumPositionStepsOverride(BodyCreationSettings self); /// /// /// Used only when this body is dynamic and colliding. Override for the number of solver position /// iterations to run, 0 means use the default in PhysicsSettings::mNumPositionSteps. The number of /// iterations to use is the max of all contacts and constraints in the island. /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:111 ///
/// uint mNumPositionStepsOverride = 0 ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetNumPositionStepsOverride")] public static partial void BodyCreationSettings_SetNumPositionStepsOverride(BodyCreationSettings self, uint value); /// /// /// Determines how mMassPropertiesOverride will be used /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:114 ///
/// EOverrideMassProperties mOverrideMassProperties = EOverrideMassProperties::CalculateMassAndInertia ///
///
/// /// /// @name Mass properties of the body (by default calculated by the shape) /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetOverrideMassProperties")] public static partial EOverrideMassProperties BodyCreationSettings_GetOverrideMassProperties(BodyCreationSettings self); /// /// /// Determines how mMassPropertiesOverride will be used /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:114 ///
/// EOverrideMassProperties mOverrideMassProperties = EOverrideMassProperties::CalculateMassAndInertia ///
///
/// /// /// @name Mass properties of the body (by default calculated by the shape) /// /// [LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetOverrideMassProperties")] public static partial void BodyCreationSettings_SetOverrideMassProperties(BodyCreationSettings self, EOverrideMassProperties value); /// /// /// When calculating the inertia (not when it is provided) the calculated inertia will be multiplied by /// this value /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:115 ///
/// float mInertiaMultiplier = 1.0f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetInertiaMultiplier")] public static partial float BodyCreationSettings_GetInertiaMultiplier(BodyCreationSettings self); /// /// /// When calculating the inertia (not when it is provided) the calculated inertia will be multiplied by /// this value /// /// /// C++: /// Jolt/Physics/Body/BodyCreationSettings.h:115 ///
/// float mInertiaMultiplier = 1.0f ///
///
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetInertiaMultiplier")] public static partial void BodyCreationSettings_SetInertiaMultiplier(BodyCreationSettings self, float value); } } }