Attachment 8315
Printable View
WOAH WOAH WOAH WOAH WOAH WOAH WOAH WOAH excuse me Wucas. GunZ has physics. :|
This is GunZ's physics.
Quote:
#include "stdafx.h"
#include "Physics.h"
#define GRAVITY_ACCELERATION 9.8f
rvector ParabolicMotion(rvector& InitialVelocity, float fSec)
{
return (0.5f * rvector(0, 0, -1)*GRAVITY_ACCELERATION * pow(fSec, 2) + InitialVelocity * fSec);
}