docs: add plugin setup guide

This commit is contained in:
2026-05-30 18:33:24 +12:00
parent f3db41c402
commit b61043a3fe
1776 changed files with 122386 additions and 2 deletions
@@ -0,0 +1,35 @@
#pragma once
#include "RE/H/hknpConvexPolytopeShape.h"
namespace RE
{
class __declspec(novtable) hknpTriangleShape :
public hknpConvexPolytopeShape
{
public:
inline static constexpr auto RTTI{ RTTI::hknpTriangleShape };
inline static constexpr auto VTABLE{ VTABLE::hknpTriangleShape };
static hknpTriangleShape* CreateEmptyTriangleShape(const float a_radius)
{
using func_t = decltype(&hknpTriangleShape::CreateEmptyTriangleShape);
static REL::Relocation<func_t> func{ ID::hknpTriangleShape::CreateEmptyTriangleShape };
return func(a_radius);
}
static hknpTriangleShape* CreateTriangleShape(const hkVector4f& a_vertexA, const hkVector4f& a_vertexB, const hkVector4f& a_vertexC, const float a_radius)
{
auto shape = CreateEmptyTriangleShape(a_radius);
shape->SetVertices(a_vertexA, a_vertexB, a_vertexC);
return shape;
}
void SetVertices(const hkVector4f& a_vertexA, const hkVector4f& a_vertexB, const hkVector4f& a_vertexC)
{
using func_t = decltype(&hknpTriangleShape::SetVertices);
static REL::Relocation<func_t> func{ ID::hknpTriangleShape::SetVertices };
func(this, a_vertexA, a_vertexB, a_vertexC);
}
};
}