DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
bound.hpp
1#pragma once
2
3#include "common.h"
4
5#include <libvu0.h>
6
10// clang-format off
11enum BoundFollowMode {
12 BOUND_FOLLOW_NONE = 0,
13 BOUND_FOLLOW_FRAME = 1,
14 BOUND_FOLLOW_SPAN = 2,
15};
16
17// clang-format on
18
19// Forward declarations for the types these declarations name. The skeleton
20// headers are generated from the retail symbol table, which knows the type
21// names but not where they live.
22class CFrame;
23
27class CBound {
28public:
31 u8 unk_08[8];
32 sceVu0FVECTOR extent;
33 sceVu0FVECTOR reciprocal;
34 float friction;
35 u8 unk_34[12];
36 sceVu0FMATRIX matrix;
37 sceVu0FMATRIX inverse;
38 sceVu0FVECTOR position;
39 sceVu0FVECTOR direction;
43 u8 unk_EC[4];
44 sceVu0FVECTOR from;
45 sceVu0FVECTOR to;
46 sceVu0FVECTOR up;
47 float to_stretch;
57 virtual int Sizeof();
58
66 virtual int InCheck(float *point, float *result);
67
76 void SetDir(CFrame *frame, float *from_position, float *to_position, float *up_direction, float half_width, float half_height);
77
85 void ChangeDir(float *from_position, float *to_position, float *up_direction);
86
95 void UpDateDir();
96
105 void SetDir(float *direction, float *up_direction);
106
115 void SetDir(float *direction);
116
125 void UpDateDirPos();
126
134 void UpDate();
135
143 void InitParam();
144
153 CBound(float half_width, float half_height, float half_depth);
154};
155
156STATIC_ASSERT(sizeof(CBound) == 0x130);
sceVu0FMATRIX inverse
Definition bound.hpp:37
sceVu0FVECTOR direction
Definition bound.hpp:39
CFrame * from_frame
Definition bound.hpp:41
void UpDateDir()
Definition bound.cpp:118
sceVu0FVECTOR to
Definition bound.hpp:45
virtual int Sizeof()
Definition dispctrl.cpp:38
s32 follow_mode
Definition bound.hpp:40
void ChangeDir(float *from_position, float *to_position, float *up_direction)
Definition bound.cpp:112
void InitParam()
Definition bound.cpp:291
CBound * next
Definition bound.hpp:29
float to_stretch
Definition bound.hpp:47
void UpDateDirPos()
Definition bound.cpp:216
CFrame * to_frame
Definition bound.hpp:42
sceVu0FVECTOR extent
Definition bound.hpp:32
void UpDate()
Definition bound.cpp:276
sceVu0FVECTOR position
Definition bound.hpp:38
virtual int InCheck(float *point, float *result)
Definition bound.cpp:25
sceVu0FVECTOR from
Definition bound.hpp:44
float friction
Definition bound.hpp:34
void SetDir(CFrame *frame, float *from_position, float *to_position, float *up_direction, float half_width, float half_height)
Definition bound.cpp:86
float from_stretch
Definition bound.hpp:48
s32 mask_bit
Definition bound.hpp:30
sceVu0FVECTOR reciprocal
Definition bound.hpp:33
sceVu0FVECTOR up
Definition bound.hpp:46
sceVu0FMATRIX matrix
Definition bound.hpp:36