Documentation: WormComponent

From Noita Wiki
Jump to navigation Jump to search
Name Type Initial Value Example Range Description
Members
speed float 1 [0, 10000]
acceleration float 3 [0, 10000]
gravity float 3 [0, 10000]
tail_gravity float 30 [0, 10000]
part_distance float 10 [0, 10000]
ground_check_offset int 0 [0, 10000]
hitbox_radius float 1 [0, 1e+006]
bite_damage float 1 [0, 10] how much damage does this do when it hits an entity
target_kill_radius float 1 [0, 1e+006]
target_kill_ragdoll_force float 1 [0, 1e+006]
jump_cam_shake float 4 [0, 10000]
jump_cam_shake_distance float 256 [0, 10000]
eat_anim_wait_mult float 0.05 [0, 10000]
ragdoll_filename std::string
is_water_worm bool false if true, tries to stay in liquids
max_speed float 25 max speed, used when attracted to a point
Custom data types
ground_decceleration LensValue<float> 3
Privates
mTargetVec vec2 (0, 0)
mGravVelocity float 0
mSpeed float 0
mTargetPosition vec2 (0, 0)
mTargetSpeed float 0
mOnGroundPrev bool false
mMaterialIdPrev int 0
mFrameNextDamage int 0
mDirectionAdjustSpeed float 1
mPrevPositions WormPartPositions