![]() |
CUGL 2.5
Cornell University Game Library
|
#include <CUNetPhysicsController.h>
Public Member Functions | |
TargetParams () | |
Public Attributes | |
int | curStep |
int | numSteps |
Vec2 | P0 |
Vec2 | P1 |
Vec2 | P2 |
Vec2 | P3 |
Vec2 | targetVel |
float | targetAngle |
float | targetAngV |
Vec2 | I |
Uint64 | numI |
The target target parameters for interpolation.
These are used to smooth errors in the simulation.
cugl::physics2::net::NetPhysicsController::TargetParams::TargetParams | ( | ) |
Creates a parameter set with default values
int cugl::physics2::net::NetPhysicsController::TargetParams::curStep |
The current step of interpolation
Vec2 cugl::physics2::net::NetPhysicsController::TargetParams::I |
The integral term sum For PID interpolation
Uint64 cugl::physics2::net::NetPhysicsController::TargetParams::numI |
The number of integral terms summed For PID interpolation
int cugl::physics2::net::NetPhysicsController::TargetParams::numSteps |
The total steps designated for interpolation
Vec2 cugl::physics2::net::NetPhysicsController::TargetParams::P0 |
The source position
Vec2 cugl::physics2::net::NetPhysicsController::TargetParams::P1 |
The first control point (for spline interpolation)
Vec2 cugl::physics2::net::NetPhysicsController::TargetParams::P2 |
The second control point (for spline interpolation)
Vec2 cugl::physics2::net::NetPhysicsController::TargetParams::P3 |
The target position
float cugl::physics2::net::NetPhysicsController::TargetParams::targetAngle |
The target angle
float cugl::physics2::net::NetPhysicsController::TargetParams::targetAngV |
The target angular velocity
Vec2 cugl::physics2::net::NetPhysicsController::TargetParams::targetVel |
The target velocity