Nebula
Toggle main menu visibility
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
17
namespace
Physics
18
{
19
21
struct
CookedConvex
22
{
23
physx::PxGeometryHolder
geometry
;
24
IndexT
bone
;
25
};
26
28
bool
CookMesh
(
const
MeshGeometryInput
& input, physx::PxGeometryHolder& out);
29
31
Util::Array<CookedConvex>
CookApproxSkin
(
const
MeshGeometryInput
& input);
32
35
bool
CookHeightField
(
const
HeightFieldInput
& input,
float
heightRange,
float
targetSizeX,
float
targetSizeZ, physx::PxGeometryHolder& out);
36
37
}
// namespace Physics
38
//------------------------------------------------------------------------------
array.h
Util::Array
Nebula's dynamic array class.
Definition
array.h:61
geometry.h
Physics
Diverse functions for manipulating physics actors.
Definition
actorcontext.cc:22
Physics::CookApproxSkin
Util::Array< CookedConvex > CookApproxSkin(const MeshGeometryInput &input)
Cook one convex hull per bone from skinned geometry.
Definition
cooking.cc:106
Physics::CookMesh
bool CookMesh(const MeshGeometryInput &input, PxGeometryHolder &out)
Definition
cooking.cc:19
Physics::CookHeightField
bool CookHeightField(const HeightFieldInput &input, float heightRange, float targetSizeX, float targetSizeZ, PxGeometryHolder &out)
Definition
cooking.cc:172
Physics::CookedConvex
A cooked convex hull together with the bone it belongs to.
Definition
cooking.h:22
Physics::CookedConvex::geometry
physx::PxGeometryHolder geometry
Definition
cooking.h:23
Physics::CookedConvex::bone
IndexT bone
Definition
cooking.h:24
Physics::HeightFieldInput
Height field samples for the cooking layer.
Definition
geometry.h:68
Physics::MeshGeometryInput
Triangle geometry for the cooking layer.
Definition
geometry.h:50
IndexT
int IndexT
Definition
types.h:41
code
physics
physics
cooking.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.