102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
constants.h File Reference

Go to the source code of this file.

Macros

#define PHYSICS_FIXED_FRACTION_BITS   12
#define PHYSICS_FIXED_ONE   0x1000
#define PHYSICS_ANGLE_MASK   0xfff
#define PHYSICS_ANGLE_QUARTER_TURN   0x400
#define PHYSICS_ANGLE_HALF_TURN   0x800
#define PHYSICS_Q14_ONE   0x4000
#define PHYSICS_ANIMATION_FRAME_TICKS   0x40
#define PHYSICS_PERCENT_SCALE   100
#define PHYSICS_WORD_SHIFT_MASK   0x1f
#define PHYSICS_BYTE_SHIFT_MASK   7
#define PHYSICS_POSITION_FRACTION_MASK   0x3f
#define PHYSICS_Q12_FRACTION_MASK   0xfff
#define PHYSICS_SIGNED_PHASE_MASK   0xfff000
#define PHYSICS_Q12_PRODUCT_HIGH_SHIFT   (32 - PHYSICS_FIXED_FRACTION_BITS)
#define PHYSICS_QUATERNION_MATRIX_SHIFT   15
#define PHYSICS_QUATERNION_DIAGONAL_HALF_Q28   0x8000000
#define PHYSICS_REPULSION_SCALE_Q24   0x2000000
#define PHYSICS_GROUND_NORMAL_THRESHOLD_Q24   0xb50000
#define PHYSICS_MOVEMENT_DURATION_SCALE_Q24   0x1000000
#define PHYSICS_GROUND_TILT_BLEND_SCALE   0x100000
#define PHYSICS_GROUND_NEAR_POSITION_SQUARED   0x1c
#define PHYSICS_FIXED_HALF   0x800
#define PHYSICS_INPUT_UNIT_THRESHOLD_Q12   0xffb
#define PHYSICS_TURN_FORWARD_DOT_THRESHOLD_Q24   0xb50481
#define PHYSICS_SPEED_LIMIT_SLOP   0x22
#define PHYSICS_SETTLED_VERTICAL_SPEED_SLOP   0x66
#define PHYSICS_MOVEMENT_VERTICAL_THRESHOLD   0x155
#define PHYSICS_AIR_ROLL_LIMIT   0x200
#define PHYSICS_AIR_ROLL_STEP   0x20
#define PHYSICS_GROUND_YAW_ERROR_SLOP   0x40
#define PHYSICS_GROUND_YAW_ERROR_RANGE   0x80
#define PHYSICS_BRIDGE_WORLD_Z_MIN   (-550)
#define PHYSICS_BRIDGE_WORLD_Z_MAX   (-400)
#define PHYSICS_BRIDGE_CENTER_Z_MIN   (-533)
#define PHYSICS_BRIDGE_CENTER_Z_MAX   (-415)
#define PHYSICS_BRIDGE_WORLD_X_MIN   0x78
#define PHYSICS_BRIDGE_WORLD_X_MAX   0x10e
#define PHYSICS_BRIDGE_HEIGHT_MAX   0x28
#define PHYSICS_BRIDGE_HEIGHT_MAX_Q12   0x28000

Enumerations

enum  Physics_MovementMode { PHYSICS_MOVE_FREE_STEERING = 0 , PHYSICS_MOVE_FACING_DRIVE = 1 , PHYSICS_MOVE_FACING_DRIVE_AIR_ROLL = 2 , PHYSICS_MOVE_FREE_STEERING_AIR_ROLL = 3 }

Macro Definition Documentation

◆ PHYSICS_AIR_ROLL_LIMIT

#define PHYSICS_AIR_ROLL_LIMIT   0x200

Definition at line 44 of file constants.h.

◆ PHYSICS_AIR_ROLL_STEP

#define PHYSICS_AIR_ROLL_STEP   0x20

Definition at line 45 of file constants.h.

◆ PHYSICS_ANGLE_HALF_TURN

#define PHYSICS_ANGLE_HALF_TURN   0x800

Definition at line 10 of file constants.h.

◆ PHYSICS_ANGLE_MASK

#define PHYSICS_ANGLE_MASK   0xfff

Definition at line 8 of file constants.h.

◆ PHYSICS_ANGLE_QUARTER_TURN

#define PHYSICS_ANGLE_QUARTER_TURN   0x400

Definition at line 9 of file constants.h.

◆ PHYSICS_ANIMATION_FRAME_TICKS

#define PHYSICS_ANIMATION_FRAME_TICKS   0x40

Definition at line 12 of file constants.h.

◆ PHYSICS_BRIDGE_CENTER_Z_MAX

#define PHYSICS_BRIDGE_CENTER_Z_MAX   (-415)

Definition at line 51 of file constants.h.

◆ PHYSICS_BRIDGE_CENTER_Z_MIN

#define PHYSICS_BRIDGE_CENTER_Z_MIN   (-533)

Definition at line 50 of file constants.h.

◆ PHYSICS_BRIDGE_HEIGHT_MAX

#define PHYSICS_BRIDGE_HEIGHT_MAX   0x28

Definition at line 54 of file constants.h.

◆ PHYSICS_BRIDGE_HEIGHT_MAX_Q12

#define PHYSICS_BRIDGE_HEIGHT_MAX_Q12   0x28000

Definition at line 55 of file constants.h.

◆ PHYSICS_BRIDGE_WORLD_X_MAX

#define PHYSICS_BRIDGE_WORLD_X_MAX   0x10e

Definition at line 53 of file constants.h.

◆ PHYSICS_BRIDGE_WORLD_X_MIN

#define PHYSICS_BRIDGE_WORLD_X_MIN   0x78

Definition at line 52 of file constants.h.

◆ PHYSICS_BRIDGE_WORLD_Z_MAX

#define PHYSICS_BRIDGE_WORLD_Z_MAX   (-400)

Definition at line 49 of file constants.h.

◆ PHYSICS_BRIDGE_WORLD_Z_MIN

#define PHYSICS_BRIDGE_WORLD_Z_MIN   (-550)

Definition at line 48 of file constants.h.

◆ PHYSICS_BYTE_SHIFT_MASK

#define PHYSICS_BYTE_SHIFT_MASK   7

Definition at line 15 of file constants.h.

◆ PHYSICS_FIXED_FRACTION_BITS

#define PHYSICS_FIXED_FRACTION_BITS   12

Definition at line 6 of file constants.h.

◆ PHYSICS_FIXED_HALF

#define PHYSICS_FIXED_HALF   0x800

Definition at line 38 of file constants.h.

◆ PHYSICS_FIXED_ONE

#define PHYSICS_FIXED_ONE   0x1000

Definition at line 7 of file constants.h.

◆ PHYSICS_GROUND_NEAR_POSITION_SQUARED

#define PHYSICS_GROUND_NEAR_POSITION_SQUARED   0x1c

Definition at line 37 of file constants.h.

◆ PHYSICS_GROUND_NORMAL_THRESHOLD_Q24

#define PHYSICS_GROUND_NORMAL_THRESHOLD_Q24   0xb50000

Definition at line 34 of file constants.h.

◆ PHYSICS_GROUND_TILT_BLEND_SCALE

#define PHYSICS_GROUND_TILT_BLEND_SCALE   0x100000

Definition at line 36 of file constants.h.

◆ PHYSICS_GROUND_YAW_ERROR_RANGE

#define PHYSICS_GROUND_YAW_ERROR_RANGE   0x80

Definition at line 47 of file constants.h.

◆ PHYSICS_GROUND_YAW_ERROR_SLOP

#define PHYSICS_GROUND_YAW_ERROR_SLOP   0x40

Definition at line 46 of file constants.h.

◆ PHYSICS_INPUT_UNIT_THRESHOLD_Q12

#define PHYSICS_INPUT_UNIT_THRESHOLD_Q12   0xffb

Definition at line 39 of file constants.h.

◆ PHYSICS_MOVEMENT_DURATION_SCALE_Q24

#define PHYSICS_MOVEMENT_DURATION_SCALE_Q24   0x1000000

Definition at line 35 of file constants.h.

◆ PHYSICS_MOVEMENT_VERTICAL_THRESHOLD

#define PHYSICS_MOVEMENT_VERTICAL_THRESHOLD   0x155

Definition at line 43 of file constants.h.

◆ PHYSICS_PERCENT_SCALE

#define PHYSICS_PERCENT_SCALE   100

Definition at line 13 of file constants.h.

◆ PHYSICS_POSITION_FRACTION_MASK

#define PHYSICS_POSITION_FRACTION_MASK   0x3f

Definition at line 17 of file constants.h.

◆ PHYSICS_Q12_FRACTION_MASK

#define PHYSICS_Q12_FRACTION_MASK   0xfff

Definition at line 18 of file constants.h.

◆ PHYSICS_Q12_PRODUCT_HIGH_SHIFT

#define PHYSICS_Q12_PRODUCT_HIGH_SHIFT   (32 - PHYSICS_FIXED_FRACTION_BITS)

Definition at line 30 of file constants.h.

◆ PHYSICS_Q14_ONE

#define PHYSICS_Q14_ONE   0x4000

Definition at line 11 of file constants.h.

◆ PHYSICS_QUATERNION_DIAGONAL_HALF_Q28

#define PHYSICS_QUATERNION_DIAGONAL_HALF_Q28   0x8000000

Definition at line 32 of file constants.h.

◆ PHYSICS_QUATERNION_MATRIX_SHIFT

#define PHYSICS_QUATERNION_MATRIX_SHIFT   15

Definition at line 31 of file constants.h.

◆ PHYSICS_REPULSION_SCALE_Q24

#define PHYSICS_REPULSION_SCALE_Q24   0x2000000

Definition at line 33 of file constants.h.

◆ PHYSICS_SETTLED_VERTICAL_SPEED_SLOP

#define PHYSICS_SETTLED_VERTICAL_SPEED_SLOP   0x66

Definition at line 42 of file constants.h.

◆ PHYSICS_SIGNED_PHASE_MASK

#define PHYSICS_SIGNED_PHASE_MASK   0xfff000

Definition at line 19 of file constants.h.

◆ PHYSICS_SPEED_LIMIT_SLOP

#define PHYSICS_SPEED_LIMIT_SLOP   0x22

Definition at line 41 of file constants.h.

◆ PHYSICS_TURN_FORWARD_DOT_THRESHOLD_Q24

#define PHYSICS_TURN_FORWARD_DOT_THRESHOLD_Q24   0xb50481

Definition at line 40 of file constants.h.

◆ PHYSICS_WORD_SHIFT_MASK

#define PHYSICS_WORD_SHIFT_MASK   0x1f

Definition at line 14 of file constants.h.

Enumeration Type Documentation

◆ Physics_MovementMode

Enumerator
PHYSICS_MOVE_FREE_STEERING 
PHYSICS_MOVE_FACING_DRIVE 
PHYSICS_MOVE_FACING_DRIVE_AIR_ROLL 
PHYSICS_MOVE_FREE_STEERING_AIR_ROLL 

Definition at line 22 of file constants.h.