// // 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/TransformedShape.h:31 ///
/// TransformedShape() = default ///
///
/// /// /// Constructor /// /// [LibraryImport("jolt", EntryPoint = "TransformedShape_Create")] public static partial TransformedShape TransformedShape_Create(); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:32 ///
/// TransformedShape(RVec3Arg inPositionCOM, QuatArg inRotation, const Shape *inShape, const BodyID &inBodyID, const SubShapeIDCreator &inSubShapeIDCreator = SubShapeIDCreator()) ///
///
[LibraryImport("jolt", EntryPoint = "TransformedShape_Create_2")] public static partial TransformedShape TransformedShape_Create_2(float3 positionCOM, floatQuat rotation, Shape shape, uint bodyID, SubShapeIDCreator subShapeIDCreator); [LibraryImport("jolt", EntryPoint = "TransformedShape_Destroy")] public static partial void TransformedShape_Destroy(TransformedShape self); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:78 ///
/// void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, RVec3Arg inBaseOffset) const ///
///
/// /// /// To start iterating over triangles, call this function first. /// To get the actual triangles call GetTrianglesNext. /// @param ioContext A temporary buffer and should remain untouched until the last call to GetTrianglesNext. /// @param inBox The world space bounding in which you want to get the triangles. /// @param inBaseOffset All hit results will be returned relative to this offset, can be zero to get results in world position, but when you're testing far from the origin you get better precision by picking a position that's closer e.g. inBox.GetCenter() since floats are most accurate near the origin /// /// [LibraryImport("jolt", EntryPoint = "TransformedShape_GetTrianglesStart")] public static partial void TransformedShape_GetTrianglesStart(TransformedShape self, ref Shape.GetTrianglesContext context, AABox box, float3 baseOffset); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:89 ///
/// inline Vec3 GetShapeScale() const ///
///
/// /// /// Get/set the scale of the shape as a Vec3 /// /// [LibraryImport("jolt", EntryPoint = "TransformedShape_GetShapeScale")] public static partial float3 TransformedShape_GetShapeScale(TransformedShape self); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:90 ///
/// inline void SetShapeScale(Vec3Arg inScale) ///
///
[LibraryImport("jolt", EntryPoint = "TransformedShape_SetShapeScale")] public static partial void TransformedShape_SetShapeScale(TransformedShape self, float3 scale); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:93 ///
/// inline RMat44 GetCenterOfMassTransform() const ///
///
/// /// /// Calculates the transform for this shape's center of mass (excluding scale) /// /// [LibraryImport("jolt", EntryPoint = "TransformedShape_GetCenterOfMassTransform")] public static partial float4x4 TransformedShape_GetCenterOfMassTransform(TransformedShape self); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:96 ///
/// inline RMat44 GetInverseCenterOfMassTransform() const ///
///
/// /// /// Calculates the inverse of the transform for this shape's center of mass (excluding scale) /// /// [LibraryImport("jolt", EntryPoint = "TransformedShape_GetInverseCenterOfMassTransform")] public static partial float4x4 TransformedShape_GetInverseCenterOfMassTransform(TransformedShape self); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:99 ///
/// inline void SetWorldTransform(RVec3Arg inPosition, QuatArg inRotation, Vec3Arg inScale) ///
///
/// /// /// Sets the world transform (including scale) of this transformed shape (not from the center of mass /// but in the space the shape was created) /// /// [LibraryImport("jolt", EntryPoint = "TransformedShape_SetWorldTransform")] public static partial void TransformedShape_SetWorldTransform(TransformedShape self, float3 position, floatQuat rotation, float3 scale); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:107 ///
/// inline void SetWorldTransform(RMat44Arg inTransform) ///
///
/// /// /// Sets the world transform (including scale) of this transformed shape (not from the center of mass /// but in the space the shape was created) /// /// [LibraryImport("jolt", EntryPoint = "TransformedShape_SetWorldTransform_2")] public static partial void TransformedShape_SetWorldTransform_2(TransformedShape self, float4x4 transform); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:115 ///
/// inline RMat44 GetWorldTransform() const ///
///
/// /// /// Calculates the world transform including scale of this shape (not from the center of mass but in the /// space the shape was created) /// /// [LibraryImport("jolt", EntryPoint = "TransformedShape_GetWorldTransform")] public static partial float4x4 TransformedShape_GetWorldTransform(TransformedShape self); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:126 ///
/// inline SubShapeID MakeSubShapeIDRelativeToShape(const SubShapeID &inSubShapeID) const ///
///
/// /// /// Make inSubShapeID relative to mShape. When mSubShapeIDCreator is not empty, this is needed in order /// to get the correct path to the sub shape. /// /// [LibraryImport("jolt", EntryPoint = "TransformedShape_MakeSubShapeIDRelativeToShape")] public static partial uint TransformedShape_MakeSubShapeIDRelativeToShape(TransformedShape self, uint subShapeID); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:138 ///
/// inline Vec3 GetWorldSpaceSurfaceNormal(const SubShapeID &inSubShapeID, RVec3Arg inPosition) const ///
///
/// /// /// Get surface normal of a particular sub shape and its world space surface position on this body. /// Note: When you have a CollideShapeResult or ShapeCastResult you should use -mPenetrationAxis.Normalized() as contact normal as GetWorldSpaceSurfaceNormal will only return face normals (and not vertex or edge normals). /// /// [LibraryImport("jolt", EntryPoint = "TransformedShape_GetWorldSpaceSurfaceNormal")] public static partial float3 TransformedShape_GetWorldSpaceSurfaceNormal(TransformedShape self, uint subShapeID, float3 position); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:158 ///
/// inline const PhysicsMaterial *GetMaterial(const SubShapeID &inSubShapeID) const ///
///
/// /// /// Get material of a particular sub shape /// /// [LibraryImport("jolt", EntryPoint = "TransformedShape_GetMaterial")] public static partial PhysicsMaterial TransformedShape_GetMaterial(TransformedShape self, uint subShapeID); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:164 ///
/// inline uint64 GetSubShapeUserData(const SubShapeID &inSubShapeID) const ///
///
/// /// /// Get the user data of a particular sub shape /// /// [LibraryImport("jolt", EntryPoint = "TransformedShape_GetSubShapeUserData")] public static partial ulong TransformedShape_GetSubShapeUserData(TransformedShape self, uint subShapeID); /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:181 ///
/// inline static BodyID sGetBodyID(const TransformedShape *inTS) ///
///
/// /// /// Helper function to return the body id from a transformed shape. If the transformed shape is null an /// invalid body ID will be returned. /// /// [LibraryImport("jolt", EntryPoint = "TransformedShape_sGetBodyID")] public static partial uint TransformedShape_sGetBodyID(TransformedShape tS); /// /// /// Center of mass world position of the shape /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:183 ///
/// RVec3 mShapePositionCOM ///
///
[LibraryImport("jolt", EntryPoint = "TransformedShape_GetShapePositionCOM")] public static partial float3 TransformedShape_GetShapePositionCOM(TransformedShape self); /// /// /// Center of mass world position of the shape /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:183 ///
/// RVec3 mShapePositionCOM ///
///
[LibraryImport("jolt", EntryPoint = "TransformedShape_SetShapePositionCOM")] public static partial void TransformedShape_SetShapePositionCOM(TransformedShape self, float3 value); /// /// /// Rotation of the shape /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:184 ///
/// Quat mShapeRotation ///
///
[LibraryImport("jolt", EntryPoint = "TransformedShape_GetShapeRotation")] public static partial floatQuat TransformedShape_GetShapeRotation(TransformedShape self); /// /// /// Rotation of the shape /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:184 ///
/// Quat mShapeRotation ///
///
[LibraryImport("jolt", EntryPoint = "TransformedShape_SetShapeRotation")] public static partial void TransformedShape_SetShapeRotation(TransformedShape self, floatQuat value); /// /// /// The shape itself /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:185 ///
/// RefConst<Shape> mShape ///
///
[LibraryImport("jolt", EntryPoint = "TransformedShape_GetShape")] public static partial Shape TransformedShape_GetShape(TransformedShape self); /// /// /// The shape itself /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:185 ///
/// RefConst<Shape> mShape ///
///
[LibraryImport("jolt", EntryPoint = "TransformedShape_SetShape")] public static partial void TransformedShape_SetShape(TransformedShape self, Shape value); /// /// /// Optional body ID from which this shape comes /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:187 ///
/// BodyID mBodyID ///
///
[LibraryImport("jolt", EntryPoint = "TransformedShape_GetBodyID")] public static partial uint TransformedShape_GetBodyID(TransformedShape self); /// /// /// Optional body ID from which this shape comes /// /// /// C++: /// Jolt/Physics/Collision/TransformedShape.h:187 ///
/// BodyID mBodyID ///
///
[LibraryImport("jolt", EntryPoint = "TransformedShape_SetBodyID")] public static partial void TransformedShape_SetBodyID(TransformedShape self, uint value); } } }