mirror of
https://github.com/zeldaret/ss
synced 2026-07-09 06:13:17 -04:00
mVec3_c rework to get copy working
This commit is contained in:
+14
-12
@@ -93,27 +93,29 @@ protected:
|
||||
public:
|
||||
/* 8002c3b0 */ dAcBase_c();
|
||||
|
||||
void setPostion(mVec3_c *r) {
|
||||
position.set(r->x, r->y, r->z);
|
||||
void setPostion(mVec3_c &r) {
|
||||
position = r;
|
||||
}
|
||||
void setScale(f32 x, f32 y, f32 z) {
|
||||
scale.set(x, y, z);
|
||||
void SetScale(mVec3_c &r) {
|
||||
scale = r;
|
||||
}
|
||||
void setScale(mVec3_c *r) {
|
||||
scale.set(r->x, r->y, r->z);
|
||||
}
|
||||
void setRotation(mAng3_c *r) {
|
||||
rotation = *r;
|
||||
void SetRotation(mAng3_c &r) {
|
||||
rotation = r;
|
||||
}
|
||||
|
||||
void copyPosition() {
|
||||
pos_copy.x = position.x;
|
||||
pos_copy.y = position.y;
|
||||
pos_copy.z = position.z;
|
||||
pos_copy = position;
|
||||
}
|
||||
|
||||
const mVec3_c &GetPostion() const {
|
||||
return position;
|
||||
}
|
||||
void copyRotation() {
|
||||
rot_copy = rotation;
|
||||
}
|
||||
mVec3_c GetPostionDifference(const dAcBase_c *other) {
|
||||
return position - other->position;
|
||||
}
|
||||
|
||||
public:
|
||||
// funcs found in TU
|
||||
|
||||
Reference in New Issue
Block a user