Documentation: PhysicsKeepInWorldComponent

From Noita Wiki
Jump to navigation Jump to search
Name Type Initial Value Example Range Description
Members
check_whole_aabb bool false All that is needed is to include one of the components with PhysicsBodyComponent or PhysicsBody2Component and it will be frozen when it hits outer edges of the world. NOTE! This will override the auto_clean variable, auto_clean will be set to false. If this is true, will check all the 4 corners of the bounding box
predict_aabb bool false Will add the velocity * 1.5 to the aabb to predict where the body will end up at. This will greatly help keep the body inside simulated world.
keep_at_last_valid_pos bool false Will try to keep the object at the latest valid position
Privates
mExPosition vec2 (0, 0)
mExRotation float 0