PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
obj_player_physics Struct Reference

Public Member Functions

 obj_player_physics ()
 
void make ()
 Dummy function.
 

Public Attributes

float walk_force
 Move force.
 
float run_force
 Running force.
 
float decelerate_stop
 Deceleration while stopping.
 
float decelerate_run
 Deceleration running while speed higher than walking.
 
float decelerate_turn
 Deceleration while turning.
 
float decelerate_air
 Decelerate in air.
 
float ground_c_max
 On-Ground max speed coefficient.
 
float ground_c
 On-Ground accelerations coefficient.
 
float slippery_c
 Slippery accelerations coefficien.
 
float gravity_accel
 Gravity acceleration.
 
float gravity_scale
 Gravity scale.
 
float velocity_jump
 Jump velocity.
 
float velocity_jump_bounce
 Boubce velocity.
 
float velocity_jump_spring
 Jump velocity on spring.
 
float velocity_jump_c
 Jump coefficient which provides increzed jump height dependent to speed.
 
int jump_time
 Time to jump.
 
int jump_time_bounce
 Time to bounce.
 
int jump_time_spring
 Time to jump.
 
float velocity_climb_x
 Climbing velocity.
 
float velocity_climb_y_up
 Climbing velocity.
 
float velocity_climb_y_down
 Climbing velocity.
 
float MaxSpeed_walk
 Max walk speed.
 
float MaxSpeed_run
 Max run speed.
 
float MaxSpeed_up
 Fly UP Max fall speed.
 
float MaxSpeed_down
 Max fall down speed.
 
bool strict_max_speed_on_ground
 reduce speed to max if faster than allowed on ground
 
bool zero_speed_y_on_enter
 
float slow_up_speed_y_coeff
 Coefficient to slow speed if it going up.
 
bool slow_speed_x_on_enter
 
float slow_speed_x_coeff
 Coefficient to slow speed.
 

Constructor & Destructor Documentation

obj_player_physics::obj_player_physics ( )

< Move force

< Running force

< Deceleration while stopping

< Deceleration running while speed higher than walking

< Deceleration while turning

< Decelerate in air

< On-Ground max speed coefficient

< On-Ground accelerations coefficient

< Slippery coefficien

< Gravity acceleration

< Gravity scale

< Jump velocity

< Jump coefficient which provides increzed jump height dependent to speed

< Time to jump

< Time to jump from bouncing surface

< Time to jump from a spring

< Climbing velocity

< Climbing velocity

< Climbing velocity

< Max walk speed

< Max run speed

< Fly UP Max fall speed

< Max fall down speed


The documentation for this struct was generated from the following files: