group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
AnimatedCharacter Struct Reference

ECS component for an animated, skin-rendered character. More...

#include <AnimatedCharacter.hpp>

Public Attributes

std::unique_ptr< CharacterAnimatoranimator
 Per-entity sampling/blending/skinning state.
 
int modelIndex = -1
 Renderer model index for this entity's skinned vertex buffer.
 

Detailed Description

ECS component for an animated, skin-rendered character.

Attached to every player entity (local + remote). Holds a non-copyable CharacterAnimator (owns ozz sampling/blending contexts) via a unique_ptr so the component remains move-only — EnTT requires components to be movable but not copyable.

modelIndex is a PER-ENTITY clone of the shared rig's LoadedModel template — each entity gets its own vertex buffer to stream skinned vertices into, so N animated characters can coexist without fighting over a single renderer slot.

Member Data Documentation

◆ animator

std::unique_ptr<CharacterAnimator> AnimatedCharacter::animator

Per-entity sampling/blending/skinning state.

◆ modelIndex

int AnimatedCharacter::modelIndex = -1

Renderer model index for this entity's skinned vertex buffer.


The documentation for this struct was generated from the following file: