Nebula
Loading...
Searching...
No Matches
cooking.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
11//------------------------------------------------------------------------------
12#include "util/array.h"
13#include "physics/geometry.h"
14
15#include "PxPhysicsAPI.h"
16
17namespace Physics
18{
19
22{
23 physx::PxGeometryHolder geometry;
25};
26
28bool CookMesh(const MeshGeometryInput& input, physx::PxGeometryHolder& out);
29
32
35bool CookHeightField(const HeightFieldInput& input, float heightRange, float targetSizeX, float targetSizeZ, physx::PxGeometryHolder& out);
36
37} // namespace Physics
38//------------------------------------------------------------------------------
Nebula's dynamic array class.
Definition array.h:61
Diverse functions for manipulating physics actors.
Definition actorcontext.cc:22
Util::Array< CookedConvex > CookApproxSkin(const MeshGeometryInput &input)
Cook one convex hull per bone from skinned geometry.
Definition cooking.cc:106
bool CookMesh(const MeshGeometryInput &input, PxGeometryHolder &out)
Definition cooking.cc:19
bool CookHeightField(const HeightFieldInput &input, float heightRange, float targetSizeX, float targetSizeZ, PxGeometryHolder &out)
Definition cooking.cc:172
A cooked convex hull together with the bone it belongs to.
Definition cooking.h:22
physx::PxGeometryHolder geometry
Definition cooking.h:23
IndexT bone
Definition cooking.h:24
Height field samples for the cooking layer.
Definition geometry.h:68
Triangle geometry for the cooking layer.
Definition geometry.h:50
int IndexT
Definition types.h:41