4 ms·
You'd define a climbing behaviour by a component on the entity. So your spaceship might have a 'Climeable' component on it and your infantry might have a 'Clim
by supercoder 13y ago
You'd define a climbing behaviour by a component on the entity.
So your spaceship might have a 'Climeable' component on it and your infantry might have a 'Climber' component. So only a 'Climber' could go onto a 'Climeable' , but not the reverse.
- Jare 13y agoYou will also need to qualify these interactions beyond the "class-compatible" test, using flags or exclusion groups or a similar technique to say which climbers can climb atop which climbables. This happens in many areas of interaction between entity components: damage, physics, visibility, etc.