mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-22 03:31:26 +00:00
- utilities for wrapping actor coordinates.
This commit is contained in:
parent
111dbd7a7d
commit
29d0f86726
1 changed files with 25 additions and 0 deletions
|
@ -70,6 +70,31 @@ public:
|
||||||
return time;
|
return time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vec3_t int_pos() const
|
||||||
|
{
|
||||||
|
return spr.pos;
|
||||||
|
}
|
||||||
|
|
||||||
|
void set_int_z(int z)
|
||||||
|
{
|
||||||
|
spr.pos.Z = z;
|
||||||
|
}
|
||||||
|
|
||||||
|
void add_int_z(int z)
|
||||||
|
{
|
||||||
|
spr.pos.Z += z;
|
||||||
|
}
|
||||||
|
|
||||||
|
void add_int_pos(const vec3_t& add)
|
||||||
|
{
|
||||||
|
spr.pos += add;
|
||||||
|
}
|
||||||
|
|
||||||
|
void set_int_pos(const vec3_t& add)
|
||||||
|
{
|
||||||
|
spr.pos = add;
|
||||||
|
}
|
||||||
|
|
||||||
DVector3 float_pos() const
|
DVector3 float_pos() const
|
||||||
{
|
{
|
||||||
return { spr.pos.X * inttoworld, spr.pos.Y * inttoworld, spr.pos.Z * zinttoworld };
|
return { spr.pos.X * inttoworld, spr.pos.Y * inttoworld, spr.pos.Z * zinttoworld };
|
||||||
|
|
Loading…
Reference in a new issue