RigsofRods
Soft-body Physics Simulation
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Functions
_
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
i
k
l
m
n
p
r
s
t
u
v
w
Typedefs
a
c
d
e
f
g
l
m
n
o
p
r
s
t
v
w
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
a
b
c
d
g
h
l
m
n
o
p
r
s
t
v
Enumerator
a
b
c
d
f
g
h
l
m
n
o
r
s
t
v
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
k
o
Macros
_
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
x
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
source
main
physics
flex
Locator_t.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <OgreVector3.h>
4
#include <
SimData.h
>
5
6
#include <algorithm>
7
8
namespace
RoR
{
9
10
struct
Locator_t
11
{
12
NodeNum_t
ref
=
NODENUM_INVALID
;
13
NodeNum_t
nx
=
NODENUM_INVALID
;
14
NodeNum_t
ny
=
NODENUM_INVALID
;
15
Ogre::Vector3
coords
= Ogre::Vector3::ZERO;
16
bool
is_forvert
=
false
;
17
18
NodeNum_t
getSmallestNode
() {
return
std::min(
ref
, std::min(
nx
,
ny
)); }
19
NodeNum_t
getBiggestNode
() {
return
std::min(
ref
, std::min(
nx
,
ny
)); }
20
NodeNum_t
getMean
() {
return
(
ref
+
nx
+
ny
) / 3; }
21
};
22
23
struct
ForvertTempData
24
{
25
NodeNum_t
nref
=
NODENUM_INVALID
;
26
NodeNum_t
nx
=
NODENUM_INVALID
;
27
NodeNum_t
ny
=
NODENUM_INVALID
;
28
int
vert_index
= 0;
29
};
30
31
}
// namespace RoR
RoR::Locator_t::nx
NodeNum_t nx
Definition:
Locator_t.h:13
RoR::Locator_t::ny
NodeNum_t ny
Definition:
Locator_t.h:14
RoR::Locator_t::ref
NodeNum_t ref
Definition:
Locator_t.h:12
RoR::Locator_t
Definition:
Locator_t.h:10
RoR::ForvertTempData::ny
NodeNum_t ny
Definition:
Locator_t.h:27
RoR::NODENUM_INVALID
static const NodeNum_t NODENUM_INVALID
Definition:
ForwardDeclarations.h:55
RoR::Locator_t::getBiggestNode
NodeNum_t getBiggestNode()
Definition:
Locator_t.h:19
RoR::Locator_t::is_forvert
bool is_forvert
Definition:
Locator_t.h:16
RoR::ForvertTempData::nref
NodeNum_t nref
Definition:
Locator_t.h:25
RoR::NodeNum_t
uint16_t NodeNum_t
Node position within Actor::ar_nodes; use RoR::NODENUM_INVALID as empty value.
Definition:
ForwardDeclarations.h:54
SimData.h
Core data structures for simulation; Everything affected by by either physics, network or user intera...
RoR::Locator_t::getMean
NodeNum_t getMean()
Definition:
Locator_t.h:20
RoR::Locator_t::coords
Ogre::Vector3 coords
Definition:
Locator_t.h:15
RoR::ForvertTempData::nx
NodeNum_t nx
Definition:
Locator_t.h:26
RoR::Locator_t::getSmallestNode
NodeNum_t getSmallestNode()
Definition:
Locator_t.h:18
RoR::ForvertTempData
< Node resolution must be done in ActorSpawner, but vert resolution in FlexBody
Definition:
Locator_t.h:23
RoR
Definition:
AppContext.h:36
RoR::ForvertTempData::vert_index
int vert_index
Definition:
Locator_t.h:28
Generated by
1.8.17