Converted radian parameters and return values to degrees

This commit is contained in:
n00b
2024-10-29 23:25:24 -04:00
parent 77ab9983a7
commit ece34a3989
16 changed files with 7023 additions and 6947 deletions

View File

@@ -0,0 +1,35 @@
#ifndef RC_PHYSICS3D_BASE_H_INCLUDED
#define RC_PHYSICS3D_BASE_H_INCLUDED
#include "rc_gfx_core.h"
//Set Gravity
void rc_setGravity3D(double x, double y, double z)
{
rc_physics3D.world->setGravity(irr::core::vector3d<f32>(x, y, z));
}
void rc_getGravity3D(double* x, double* y, double* z)
{
btVector3 v = rc_physics3D.world->getPointer()->getGravity();
*x = v.getX();
*y = v.getY();
*z = v.getZ();
}
void rc_setWorld3DDeltaTime(double dt)
{
rc_physics3D.DeltaTime = dt;
}
void rc_setWorld3DMaxSubSteps(double steps)
{
rc_physics3D.maxSubSteps = steps;
}
void rc_setWorld3DTimeStep(double ts)
{
rc_physics3D.fixedTimeStep = ts;
}
#endif // RC_PHYSICS3D_BASE_H_INCLUDED