Skip to main content
Learn how to build entities composed of multiple models that work together as a single unit.

Overview

Multi-part entities allow you to:
  • Create large bosses with multiple body segments
  • Build modular entities with detachable parts
  • Synchronize animations across multiple models
  • Handle individual part interactions

Basic Multi-Part System

Core Multi-Part Entity

Segmented Dragon Boss

Advanced Dragon with Multiple Segments

Best Practices

  • Use entity trackers for parts that need collision/hitboxes
  • Use dummy trackers for decorative parts (wings, effects)
  • Synchronize animations across all parts for cohesive movement
  • Implement smooth interpolation for segment following
  • Cache part references for quick access
  • Limit the number of parts to maintain performance
  • Clean up all parts when removing the entity
  • Test part interactions thoroughly
  • Consider network overhead with many entities

Next Steps

Dynamic Boss

Create complex boss entities

Custom Events

Handle part-specific interactions

Performance Optimization

Optimize multi-part entities

API Reference

EntityTracker API documentation