Sollumz
2.7 (Latest)
2.7 (Latest)
  • 👋Welcome
  • 📋Features
  • 📗Getting Started
    • ðŸ“ĨInstallation
    • 🍀Creating Your First Asset
  • ðŸ”ĻSupport
    • ❔FAQ
    • 💎Getting Help
    • ⚠ïļFiles not supported by Sollumz
  • 📚Tutorials
    • 🌐Creating Static Meshes
    • ðŸ’ĨCreating Static Collisions
    • 🏠Creating Interiors
      • 🏠Picking a building
      • Importing from CodeWalker
      • Planning
      • 🏠📐 Modelling
      • Texturing
      • Collisions
      • Creating ytyp
      • Export from Blender
      • Creating ymap
    • ðŸŽļCreating Props
      • âšŦSetting Up Sollumz Shaders
      • 🌐Converting To Drawable
      • ⚩Creating the Archetype (.ytyp)
    • 🚙Creating Vehicles
      • 📑Setting Up the Model and Materials
      • ðŸĶīPositioning Bones
      • ðŸšĶVertex Groups, Hierarchy, and Armature
      • ðŸĒLOD Assignment
      • ðŸ“ĪExporting
    • ðŸ”ŦCreating Weapons [TODO]
    • 🎎Basic Animation Editing [TODO]
    • 👕Basic Clothes Editing
  • 📄Documentation
    • 🌐Drawables (.ydr)
      • Level of Detail (LODs) Editing
      • Rigging
    • 🚙Fragments (.yft)
      • Bone Physics
      • Collision Physics
      • Prop Setup
      • Vehicle Setup
        • Import Settings
        • Vehicle Windows
        • Light IDs
        • Paint Colors
        • Wheels
        • Export Settings
      • Vehicle Shaders
    • 🗂ïļDrawable Dictionary (.ydd)
    • ðŸ’ĨCollisions (.ybn)
    • 🎎Clip Dictionary (.ycd) [TODO]
    • 📇Archetype Definition (.ytyp)
      • Archetype Flags
      • Archetype Extensions
    • 🗚ïļMap Data (.ymap)
    • ðŸ’ĄLighting (.ydr)
      • Light Flags
      • Flashiness Values
Powered by GitBook
On this page
  • Fragment Hierarchy
  • Prop Rigging
  • Skeleton Setup
  • Collisions
  • Quick Note on YTYP Flags

Was this helpful?

Export as PDF
  1. Documentation
  2. Fragments (.yft)

Prop Setup

PreviousCollision PhysicsNextVehicle Setup

Last updated 1 year ago

Was this helpful?

The example prop used in this article is prop_container_05a.yft

Fragment Hierarchy

Prop Rigging

You'll also notice that each Drawable Model is rigged using a Child Of constraint instead of vertex groups.

This is the case for all props. Typically each Drawable Model for a prop corresponds to a particular separable part of the Fragment. Notice there is a Drawable Model for the latch, each door, and the container itself.

Skeleton Setup

This matches up with the bone hierarchy.

Each bone is parented to Prop_Container_05a and is thus affected by that bone. Every skeleton in the game engine always has one root bone that all the other bones are parented to.

If you attempt to add multiple top-level bones (bones with no parent) you will run into issues. Make sure there is a single "root" bone that all other bones are parented to!

Notice, too, that each bone has Use Physics enabled. This means that each of those parts will have physics in-game and will separate from each other.

In this case, the doors don't actually "separate" from the mesh, but fling open instead. This is because the Strength bone physics property is set to -1. When set to another value (i.e. 100) you'll notice that the parts will separate.

Collisions

As mentioned before, each bone with physics enabled must have an associated collision. However, there can be multiple collisions for a single bone. Notice for this prop, there is a single collision for the latch and the doors, but the container itself is comprised of 5 box collisions.

You will notice that a lot of vanilla collisions will use bound shapes wherever possible. This is typically preferred over using a bound mesh as it is much more performant. Keep collisions as simple as possible.

Each of these collision objects is linked to a bone via a Child Of Constraint.

Each collision also has its mass set in the Object Properties > Sollumz > Physics panel.

Quick Note on YTYP Flags

In order for physics to work for your prop in-game, make sure the YTYP archetype has the "Dynamic" flag enabled!

📄
🚙
prop_container_05a.yft
prop_container_05a Blender hierarchy
prop_container_05a.mesh
prop_container_05a.skel
With Strength set to 100 for both doors
prop_container_05a.col
Prop_CDoor_L.col constraints panel
Object Properties > Sollumz > Physics
Archetype Definition > Archetypes > crate > Flags