Documentation: PhysicsAIComponent
Jump to navigation
Jump to search
Name | Type | Initial Value | Example Range | Description |
---|---|---|---|---|
Members | ||||
target_vec_max_len | float | 5 | ||
force_coeff | float | 30 | ||
force_balancing_coeff | float | 1.5 | ||
force_max | float | 100 | ||
torque_coeff | float | 50 | ||
torque_balancing_coeff | float | 0.2 | ||
torque_max | float | 50 | ||
torque_damaged_max (Beta) | float | 100 | ||
torque_jump_random (Beta) | float | 0 | ||
damage_deactivation_probability | int | 80 | ||
damage_deactivation_time_min | int | 30 | ||
damage_deactivation_time_max | int | 60 | ||
die_on_remaining_mass_percentage | float | 0.3 | [0, 1] | |
levitate | bool | true | ||
v0_jump_logic (Beta) | bool | true | ||
v0_swim_logic (Beta) | bool | true | ||
swim_check_y_min (Beta) | int | -2 | ||
swim_check_y_max (Beta) | int | 2 | ||
swim_check_side_x (Beta) | int | 4 | ||
swim_check_side_y (Beta) | int | -2 | ||
keep_inside_world | bool | true | fix to the bug in which the spiders spawned inside the Holy Mountain, if set will try not to go into places which aren't loaded | |
free_if_static | bool | false | set true for the boss, because box2d might turn this body into a static body, if it thinks it's glitching out. | |
Privates | ||||
rotation_speed | float | 0 | ||
mStartingMass | float | 1 | ||
mMainBodyFound | bool | false | ||
mNextFrameActive | int | 0 | ||
mRotationTarget | float | 0 | ||
mLastPositionWhenHadPath | vec2 | (0, 0) | ||
mHasLastPosition | bool | false |