mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
939 lines
55 KiB
C#
939 lines
55 KiB
C#
// <auto-generated/>
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L36">Jolt/Physics/Body/BodyCreationSettings.h:36</see>
|
|
/// <br/>
|
|
/// <c>BodyCreationSettings() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Create")]
|
|
public static partial BodyCreationSettings BodyCreationSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L37">Jolt/Physics/Body/BodyCreationSettings.h:37</see>
|
|
/// <br/>
|
|
/// <c>BodyCreationSettings(const ShapeSettings *inShape, RVec3Arg inPosition, QuatArg inRotation, EMotionType inMotionType, ObjectLayer inObjectLayer)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_Create_2")]
|
|
public static partial BodyCreationSettings BodyCreationSettings_Create_2(ShapeSettings shape, float3 position, floatQuat rotation, EMotionType motionType, ushort objectLayer);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L38">Jolt/Physics/Body/BodyCreationSettings.h:38</see>
|
|
/// <br/>
|
|
/// <c>BodyCreationSettings(const Shape *inShape, RVec3Arg inPosition, QuatArg inRotation, EMotionType inMotionType, ObjectLayer inObjectLayer)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[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);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L41">Jolt/Physics/Body/BodyCreationSettings.h:41</see>
|
|
/// <br/>
|
|
/// <c>const ShapeSettings * GetShapeSettings() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Access to the shape settings object. This contains serializable (non-runtime optimized) information
|
|
/// about the Shape.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetShapeSettings")]
|
|
public static partial ShapeSettings BodyCreationSettings_GetShapeSettings(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L42">Jolt/Physics/Body/BodyCreationSettings.h:42</see>
|
|
/// <br/>
|
|
/// <c>void SetShapeSettings(const ShapeSettings *inShape)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetShapeSettings")]
|
|
public static partial void BodyCreationSettings_SetShapeSettings(BodyCreationSettings self, ShapeSettings shape);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L45">Jolt/Physics/Body/BodyCreationSettings.h:45</see>
|
|
/// <br/>
|
|
/// <c>Shape::ShapeResult ConvertShapeSettings()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_ConvertShapeSettings")]
|
|
public static partial Shape BodyCreationSettings_ConvertShapeSettings(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L48">Jolt/Physics/Body/BodyCreationSettings.h:48</see>
|
|
/// <br/>
|
|
/// <c>const Shape * GetShape() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Access to the run-time shape object. Will convert from ShapeSettings object if needed.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetShape")]
|
|
public static partial Shape BodyCreationSettings_GetShape(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L49">Jolt/Physics/Body/BodyCreationSettings.h:49</see>
|
|
/// <br/>
|
|
/// <c>void SetShape(const Shape *inShape)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetShape")]
|
|
public static partial void BodyCreationSettings_SetShape(BodyCreationSettings self, Shape shape);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L52">Jolt/Physics/Body/BodyCreationSettings.h:52</see>
|
|
/// <br/>
|
|
/// <c>bool HasMassProperties() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if the mass properties of this body will be calculated (only relevant for kinematic or dynamic
|
|
/// objects that need a MotionProperties object)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_HasMassProperties")]
|
|
public static partial Brutal.Bool8 BodyCreationSettings_HasMassProperties(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L58">Jolt/Physics/Body/BodyCreationSettings.h:58</see>
|
|
/// <br/>
|
|
/// <c>void SaveBinaryState(StreamOut &inStream) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Saves the state of this object in binary form to inStream. Doesn't store the shape nor the group
|
|
/// filter.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SaveBinaryState")]
|
|
public static partial void BodyCreationSettings_SaveBinaryState(BodyCreationSettings self, StreamOut stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L61">Jolt/Physics/Body/BodyCreationSettings.h:61</see>
|
|
/// <br/>
|
|
/// <c>void RestoreBinaryState(StreamIn &inStream)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Restore the state of this object from inStream. Doesn't restore the shape nor the group filter.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_RestoreBinaryState")]
|
|
public static partial void BodyCreationSettings_RestoreBinaryState(BodyCreationSettings self, StreamIn stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Position of the body (not of the center of mass)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L80">Jolt/Physics/Body/BodyCreationSettings.h:80</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPosition = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetPosition")]
|
|
public static partial float3 BodyCreationSettings_GetPosition(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Position of the body (not of the center of mass)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L80">Jolt/Physics/Body/BodyCreationSettings.h:80</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPosition = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetPosition")]
|
|
public static partial void BodyCreationSettings_SetPosition(BodyCreationSettings self, float3 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Rotation of the body
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L81">Jolt/Physics/Body/BodyCreationSettings.h:81</see>
|
|
/// <br/>
|
|
/// <c>Quat mRotation = Quat::sIdentity()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetRotation")]
|
|
public static partial floatQuat BodyCreationSettings_GetRotation(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Rotation of the body
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L81">Jolt/Physics/Body/BodyCreationSettings.h:81</see>
|
|
/// <br/>
|
|
/// <c>Quat mRotation = Quat::sIdentity()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetRotation")]
|
|
public static partial void BodyCreationSettings_SetRotation(BodyCreationSettings self, floatQuat value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// World space linear velocity of the center of mass (m/s)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L82">Jolt/Physics/Body/BodyCreationSettings.h:82</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mLinearVelocity = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetLinearVelocity")]
|
|
public static partial float3 BodyCreationSettings_GetLinearVelocity(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// World space linear velocity of the center of mass (m/s)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L82">Jolt/Physics/Body/BodyCreationSettings.h:82</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mLinearVelocity = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetLinearVelocity")]
|
|
public static partial void BodyCreationSettings_SetLinearVelocity(BodyCreationSettings self, float3 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// World space angular velocity (rad/s)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L83">Jolt/Physics/Body/BodyCreationSettings.h:83</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mAngularVelocity = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAngularVelocity")]
|
|
public static partial float3 BodyCreationSettings_GetAngularVelocity(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// World space angular velocity (rad/s)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L83">Jolt/Physics/Body/BodyCreationSettings.h:83</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mAngularVelocity = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAngularVelocity")]
|
|
public static partial void BodyCreationSettings_SetAngularVelocity(BodyCreationSettings self, float3 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L86">Jolt/Physics/Body/BodyCreationSettings.h:86</see>
|
|
/// <br/>
|
|
/// <c>uint64 mUserData = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// User data value (can be used by application)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetUserData")]
|
|
public static partial ulong BodyCreationSettings_GetUserData(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L86">Jolt/Physics/Body/BodyCreationSettings.h:86</see>
|
|
/// <br/>
|
|
/// <c>uint64 mUserData = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// User data value (can be used by application)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetUserData")]
|
|
public static partial void BodyCreationSettings_SetUserData(BodyCreationSettings self, ulong value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// The collision layer this body belongs to (determines if two objects can collide)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L89">Jolt/Physics/Body/BodyCreationSettings.h:89</see>
|
|
/// <br/>
|
|
/// <c>ObjectLayer mObjectLayer = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Collision settings
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetObjectLayer")]
|
|
public static partial ushort BodyCreationSettings_GetObjectLayer(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// The collision layer this body belongs to (determines if two objects can collide)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L89">Jolt/Physics/Body/BodyCreationSettings.h:89</see>
|
|
/// <br/>
|
|
/// <c>ObjectLayer mObjectLayer = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Collision settings
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetObjectLayer")]
|
|
public static partial void BodyCreationSettings_SetObjectLayer(BodyCreationSettings self, ushort value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Motion type, determines if the object is static, dynamic or kinematic
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L93">Jolt/Physics/Body/BodyCreationSettings.h:93</see>
|
|
/// <br/>
|
|
/// <c>EMotionType mMotionType = EMotionType::Dynamic</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Simulation properties
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMotionType")]
|
|
public static partial EMotionType BodyCreationSettings_GetMotionType(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Motion type, determines if the object is static, dynamic or kinematic
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L93">Jolt/Physics/Body/BodyCreationSettings.h:93</see>
|
|
/// <br/>
|
|
/// <c>EMotionType mMotionType = EMotionType::Dynamic</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Simulation properties
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMotionType")]
|
|
public static partial void BodyCreationSettings_SetMotionType(BodyCreationSettings self, EMotionType value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Which degrees of freedom this body has (can be used to limit simulation to 2D)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L94">Jolt/Physics/Body/BodyCreationSettings.h:94</see>
|
|
/// <br/>
|
|
/// <c>EAllowedDOFs mAllowedDOFs = EAllowedDOFs::All</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAllowedDOFs")]
|
|
public static partial EAllowedDOFs BodyCreationSettings_GetAllowedDOFs(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Which degrees of freedom this body has (can be used to limit simulation to 2D)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L94">Jolt/Physics/Body/BodyCreationSettings.h:94</see>
|
|
/// <br/>
|
|
/// <c>EAllowedDOFs mAllowedDOFs = EAllowedDOFs::All</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAllowedDOFs")]
|
|
public static partial void BodyCreationSettings_SetAllowedDOFs(BodyCreationSettings self, EAllowedDOFs value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L95">Jolt/Physics/Body/BodyCreationSettings.h:95</see>
|
|
/// <br/>
|
|
/// <c>bool mAllowDynamicOrKinematic = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAllowDynamicOrKinematic")]
|
|
public static partial Brutal.Bool8 BodyCreationSettings_GetAllowDynamicOrKinematic(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L95">Jolt/Physics/Body/BodyCreationSettings.h:95</see>
|
|
/// <br/>
|
|
/// <c>bool mAllowDynamicOrKinematic = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAllowDynamicOrKinematic")]
|
|
public static partial void BodyCreationSettings_SetAllowDynamicOrKinematic(BodyCreationSettings self, Brutal.Bool8 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L96">Jolt/Physics/Body/BodyCreationSettings.h:96</see>
|
|
/// <br/>
|
|
/// <c>bool mIsSensor = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetIsSensor")]
|
|
public static partial Brutal.Bool8 BodyCreationSettings_GetIsSensor(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L96">Jolt/Physics/Body/BodyCreationSettings.h:96</see>
|
|
/// <br/>
|
|
/// <c>bool mIsSensor = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetIsSensor")]
|
|
public static partial void BodyCreationSettings_SetIsSensor(BodyCreationSettings self, Brutal.Bool8 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If kinematic objects can generate contact points against other kinematic or static objects. See
|
|
/// description at Body::SetCollideKinematicVsNonDynamic.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L97">Jolt/Physics/Body/BodyCreationSettings.h:97</see>
|
|
/// <br/>
|
|
/// <c>bool mCollideKinematicVsNonDynamic = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetCollideKinematicVsNonDynamic")]
|
|
public static partial Brutal.Bool8 BodyCreationSettings_GetCollideKinematicVsNonDynamic(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If kinematic objects can generate contact points against other kinematic or static objects. See
|
|
/// description at Body::SetCollideKinematicVsNonDynamic.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L97">Jolt/Physics/Body/BodyCreationSettings.h:97</see>
|
|
/// <br/>
|
|
/// <c>bool mCollideKinematicVsNonDynamic = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetCollideKinematicVsNonDynamic")]
|
|
public static partial void BodyCreationSettings_SetCollideKinematicVsNonDynamic(BodyCreationSettings self, Brutal.Bool8 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If this body should use manifold reduction (see description at Body::SetUseManifoldReduction)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L98">Jolt/Physics/Body/BodyCreationSettings.h:98</see>
|
|
/// <br/>
|
|
/// <c>bool mUseManifoldReduction = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetUseManifoldReduction")]
|
|
public static partial Brutal.Bool8 BodyCreationSettings_GetUseManifoldReduction(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If this body should use manifold reduction (see description at Body::SetUseManifoldReduction)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L98">Jolt/Physics/Body/BodyCreationSettings.h:98</see>
|
|
/// <br/>
|
|
/// <c>bool mUseManifoldReduction = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetUseManifoldReduction")]
|
|
public static partial void BodyCreationSettings_SetUseManifoldReduction(BodyCreationSettings self, Brutal.Bool8 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L99">Jolt/Physics/Body/BodyCreationSettings.h:99</see>
|
|
/// <br/>
|
|
/// <c>bool mApplyGyroscopicForce = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetApplyGyroscopicForce")]
|
|
public static partial Brutal.Bool8 BodyCreationSettings_GetApplyGyroscopicForce(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L99">Jolt/Physics/Body/BodyCreationSettings.h:99</see>
|
|
/// <br/>
|
|
/// <c>bool mApplyGyroscopicForce = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetApplyGyroscopicForce")]
|
|
public static partial void BodyCreationSettings_SetApplyGyroscopicForce(BodyCreationSettings self, Brutal.Bool8 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Motion quality, or how well it detects collisions when it has a high velocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L100">Jolt/Physics/Body/BodyCreationSettings.h:100</see>
|
|
/// <br/>
|
|
/// <c>EMotionQuality mMotionQuality = EMotionQuality::Discrete</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMotionQuality")]
|
|
public static partial EMotionQuality BodyCreationSettings_GetMotionQuality(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Motion quality, or how well it detects collisions when it has a high velocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L100">Jolt/Physics/Body/BodyCreationSettings.h:100</see>
|
|
/// <br/>
|
|
/// <c>EMotionQuality mMotionQuality = EMotionQuality::Discrete</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMotionQuality")]
|
|
public static partial void BodyCreationSettings_SetMotionQuality(BodyCreationSettings self, EMotionQuality value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L101">Jolt/Physics/Body/BodyCreationSettings.h:101</see>
|
|
/// <br/>
|
|
/// <c>bool mEnhancedInternalEdgeRemoval = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetEnhancedInternalEdgeRemoval")]
|
|
public static partial Brutal.Bool8 BodyCreationSettings_GetEnhancedInternalEdgeRemoval(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L101">Jolt/Physics/Body/BodyCreationSettings.h:101</see>
|
|
/// <br/>
|
|
/// <c>bool mEnhancedInternalEdgeRemoval = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetEnhancedInternalEdgeRemoval")]
|
|
public static partial void BodyCreationSettings_SetEnhancedInternalEdgeRemoval(BodyCreationSettings self, Brutal.Bool8 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If this body can go to sleep or not
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L102">Jolt/Physics/Body/BodyCreationSettings.h:102</see>
|
|
/// <br/>
|
|
/// <c>bool mAllowSleeping = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAllowSleeping")]
|
|
public static partial Brutal.Bool8 BodyCreationSettings_GetAllowSleeping(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If this body can go to sleep or not
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L102">Jolt/Physics/Body/BodyCreationSettings.h:102</see>
|
|
/// <br/>
|
|
/// <c>bool mAllowSleeping = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAllowSleeping")]
|
|
public static partial void BodyCreationSettings_SetAllowSleeping(BodyCreationSettings self, Brutal.Bool8 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L103">Jolt/Physics/Body/BodyCreationSettings.h:103</see>
|
|
/// <br/>
|
|
/// <c>float mFriction = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetFriction")]
|
|
public static partial float BodyCreationSettings_GetFriction(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L103">Jolt/Physics/Body/BodyCreationSettings.h:103</see>
|
|
/// <br/>
|
|
/// <c>float mFriction = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetFriction")]
|
|
public static partial void BodyCreationSettings_SetFriction(BodyCreationSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L104">Jolt/Physics/Body/BodyCreationSettings.h:104</see>
|
|
/// <br/>
|
|
/// <c>float mRestitution = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetRestitution")]
|
|
public static partial float BodyCreationSettings_GetRestitution(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L104">Jolt/Physics/Body/BodyCreationSettings.h:104</see>
|
|
/// <br/>
|
|
/// <c>float mRestitution = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetRestitution")]
|
|
public static partial void BodyCreationSettings_SetRestitution(BodyCreationSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Linear damping: dv/dt = -c * v. c. Value should be zero or positive and is usually close to 0.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L105">Jolt/Physics/Body/BodyCreationSettings.h:105</see>
|
|
/// <br/>
|
|
/// <c>float mLinearDamping = 0.05f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetLinearDamping")]
|
|
public static partial float BodyCreationSettings_GetLinearDamping(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Linear damping: dv/dt = -c * v. c. Value should be zero or positive and is usually close to 0.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L105">Jolt/Physics/Body/BodyCreationSettings.h:105</see>
|
|
/// <br/>
|
|
/// <c>float mLinearDamping = 0.05f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetLinearDamping")]
|
|
public static partial void BodyCreationSettings_SetLinearDamping(BodyCreationSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Angular damping: dw/dt = -c * w. c. Value should be zero or positive and is usually close to 0.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L106">Jolt/Physics/Body/BodyCreationSettings.h:106</see>
|
|
/// <br/>
|
|
/// <c>float mAngularDamping = 0.05f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetAngularDamping")]
|
|
public static partial float BodyCreationSettings_GetAngularDamping(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Angular damping: dw/dt = -c * w. c. Value should be zero or positive and is usually close to 0.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L106">Jolt/Physics/Body/BodyCreationSettings.h:106</see>
|
|
/// <br/>
|
|
/// <c>float mAngularDamping = 0.05f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetAngularDamping")]
|
|
public static partial void BodyCreationSettings_SetAngularDamping(BodyCreationSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum linear velocity that this body can reach (m/s)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L107">Jolt/Physics/Body/BodyCreationSettings.h:107</see>
|
|
/// <br/>
|
|
/// <c>float mMaxLinearVelocity = 500.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMaxLinearVelocity")]
|
|
public static partial float BodyCreationSettings_GetMaxLinearVelocity(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum linear velocity that this body can reach (m/s)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L107">Jolt/Physics/Body/BodyCreationSettings.h:107</see>
|
|
/// <br/>
|
|
/// <c>float mMaxLinearVelocity = 500.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMaxLinearVelocity")]
|
|
public static partial void BodyCreationSettings_SetMaxLinearVelocity(BodyCreationSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum angular velocity that this body can reach (rad/s)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L108">Jolt/Physics/Body/BodyCreationSettings.h:108</see>
|
|
/// <br/>
|
|
/// <c>float mMaxAngularVelocity = 0.25f * JPH_PI * 60.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetMaxAngularVelocity")]
|
|
public static partial float BodyCreationSettings_GetMaxAngularVelocity(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum angular velocity that this body can reach (rad/s)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L108">Jolt/Physics/Body/BodyCreationSettings.h:108</see>
|
|
/// <br/>
|
|
/// <c>float mMaxAngularVelocity = 0.25f * JPH_PI * 60.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetMaxAngularVelocity")]
|
|
public static partial void BodyCreationSettings_SetMaxAngularVelocity(BodyCreationSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Value to multiply gravity with for this body
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L109">Jolt/Physics/Body/BodyCreationSettings.h:109</see>
|
|
/// <br/>
|
|
/// <c>float mGravityFactor = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetGravityFactor")]
|
|
public static partial float BodyCreationSettings_GetGravityFactor(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Value to multiply gravity with for this body
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L109">Jolt/Physics/Body/BodyCreationSettings.h:109</see>
|
|
/// <br/>
|
|
/// <c>float mGravityFactor = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetGravityFactor")]
|
|
public static partial void BodyCreationSettings_SetGravityFactor(BodyCreationSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L110">Jolt/Physics/Body/BodyCreationSettings.h:110</see>
|
|
/// <br/>
|
|
/// <c>uint mNumVelocityStepsOverride = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetNumVelocityStepsOverride")]
|
|
public static partial uint BodyCreationSettings_GetNumVelocityStepsOverride(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L110">Jolt/Physics/Body/BodyCreationSettings.h:110</see>
|
|
/// <br/>
|
|
/// <c>uint mNumVelocityStepsOverride = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetNumVelocityStepsOverride")]
|
|
public static partial void BodyCreationSettings_SetNumVelocityStepsOverride(BodyCreationSettings self, uint value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L111">Jolt/Physics/Body/BodyCreationSettings.h:111</see>
|
|
/// <br/>
|
|
/// <c>uint mNumPositionStepsOverride = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetNumPositionStepsOverride")]
|
|
public static partial uint BodyCreationSettings_GetNumPositionStepsOverride(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L111">Jolt/Physics/Body/BodyCreationSettings.h:111</see>
|
|
/// <br/>
|
|
/// <c>uint mNumPositionStepsOverride = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetNumPositionStepsOverride")]
|
|
public static partial void BodyCreationSettings_SetNumPositionStepsOverride(BodyCreationSettings self, uint value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Determines how mMassPropertiesOverride will be used
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L114">Jolt/Physics/Body/BodyCreationSettings.h:114</see>
|
|
/// <br/>
|
|
/// <c>EOverrideMassProperties mOverrideMassProperties = EOverrideMassProperties::CalculateMassAndInertia</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Mass properties of the body (by default calculated by the shape)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetOverrideMassProperties")]
|
|
public static partial EOverrideMassProperties BodyCreationSettings_GetOverrideMassProperties(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Determines how mMassPropertiesOverride will be used
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L114">Jolt/Physics/Body/BodyCreationSettings.h:114</see>
|
|
/// <br/>
|
|
/// <c>EOverrideMassProperties mOverrideMassProperties = EOverrideMassProperties::CalculateMassAndInertia</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Mass properties of the body (by default calculated by the shape)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetOverrideMassProperties")]
|
|
public static partial void BodyCreationSettings_SetOverrideMassProperties(BodyCreationSettings self, EOverrideMassProperties value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// When calculating the inertia (not when it is provided) the calculated inertia will be multiplied by
|
|
/// this value
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L115">Jolt/Physics/Body/BodyCreationSettings.h:115</see>
|
|
/// <br/>
|
|
/// <c>float mInertiaMultiplier = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_GetInertiaMultiplier")]
|
|
public static partial float BodyCreationSettings_GetInertiaMultiplier(BodyCreationSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// When calculating the inertia (not when it is provided) the calculated inertia will be multiplied by
|
|
/// this value
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyCreationSettings.h#L115">Jolt/Physics/Body/BodyCreationSettings.h:115</see>
|
|
/// <br/>
|
|
/// <c>float mInertiaMultiplier = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyCreationSettings_SetInertiaMultiplier")]
|
|
public static partial void BodyCreationSettings_SetInertiaMultiplier(BodyCreationSettings self, float value);
|
|
}
|
|
}
|
|
}
|