mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-07-11 23:54:34 +00:00
Added a few things that I forgot
This commit is contained in:
parent
8c1723d6ba
commit
2ee8c36a90
5 changed files with 42 additions and 20 deletions
|
|
@ -30,16 +30,16 @@ extern "C"
|
|||
__declspec(dllexport) void ServerProcess(unsigned int deltaTime)
|
||||
{
|
||||
//memPatch("602D1E","9090");
|
||||
float *pos;
|
||||
float *rot;
|
||||
float pos[3];
|
||||
float rot[4];
|
||||
if (gravid!=0) {
|
||||
if (movespeed != 0.0) {
|
||||
float timeinseconds=(deltaTime/1000.0f);
|
||||
void * objptr = Sim::findObject(gravid);
|
||||
if ((unsigned int)(objptr)) {
|
||||
DX::SceneObject newobj=DX::SceneObject((unsigned int)objptr);
|
||||
pos=newobj.getPosition();
|
||||
rot=newobj.getRotation();
|
||||
newobj.getPosition(pos);
|
||||
newobj.getRotation(rot);
|
||||
pos[2]+=(movespeed*timeinseconds);
|
||||
newobj.setPosition(pos);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue