π₯Creating Static Collisions
Game Collisions are stored in the Static Collisions (.ybn) file format. Creating Collisions in Sollumz is very straight forwards.
Last updated
Game Collisions are stored in the Static Collisions (.ybn) file format. Creating Collisions in Sollumz is very straight forwards.
Last updated
Basic Blender skills (This is a great place to start)
Know how to either stream assets in a FiveM server or load mods into the base-game
A mesh located at the world location (where you want the collision to be)
The first thing to do is apply location transforms on your object(s). Select all the objects and press CTRL + A and select 'Location'.
Next go to Sollumz Tools > Collisions > Create Bounds and select your object(s) and click 'Convert to Composite'.
Ensure that the Bound Composite and Bound GeometryBVH empties are located at 0, 0, 0.
Next, Center the origins of your object(s), go to Object > Set Origin > Origin to Geometry.
It should now look something like this.
Last step is to rename the 'Bound Composite' empty to your .ybn file name.
Using Primitive shapes such as, 'Bound Poly Box', 'Bound Poly Capsule', 'Bound Poly Sphere' should be used for majority of your collisions, unless the mesh is a complex shape and cannot be made up of multiple primitive shapes. This is because it is more performance friendly and reduces unnecessary asset size.