Doors - user-grinch/ModelExtras GitHub Wiki
πͺ Overview
AnimatedDoors brings dynamic realism to your vehicle mods by enabling smooth, believable door animations β from sleek sliding mechanisms to satisfying hinges. Whether you're crafting a futuristic minivan or a retro coupe, doors can now slide or rotate open and closed automatically using preset bone animations.
There are two main animation types, each triggered by specific node names:
π Type 1 β Slider Doors
These doors slide along a linear path, typically parallel to the vehicle body. Ideal for minivans, futuristic vehicles, or specialty mods.
π§© Supported Node Names:
x_sd_lf
β left front sliding doorx_sd_rf
β right front sliding doorx_sd_lr
β left rear sliding doorx_sd_rr
β right rear sliding door
π Attach your door geometry under one of these node names to activate sliding behavior. The system handles the animation axis and range.
π Type 2 β Rotate Doors
These doors pivot on a hinge, emulating traditional car doors.
π§© Supported Node Names:
x_rd_lf
β left front rotating doorx_rd_rf
β right front rotating doorx_rd_lr
β left rear rotating doorx_rd_rr
β right rear rotating door
π§ The game calculates the hinge rotation and speed β you just define the correct node and orientation.
βοΈ JSONC Integration
Both types of animated doors support a reverse
flag in your modelβs .jsonc
configuration. This allows you to invert the default open direction of any door for custom behavior.
π§ͺ Example:
{
"doors": {
"x_sd_lf": { "reverse": true },
"x_rd_rf": { "reverse": false }
}
}