how does diversion engine models objects "collections components" work during runtime?


i'm minute lightweight diversion engine while doing investigate i've opposing array compelled articles advocating doing diversion objects by "collection components" denote rather an "inheiritance petrify classes" model. there lots advantages:




  • objects stoical controlling data
    driven settlement techniques, allowing
    designers adult new
    objects but involving a
    programmer;

  • there tend fewer source file
    dependencies, permitting formula be
    compiled faster;

  • the engine whole becomes more
    general;

  • unforseen consequences carrying to
    change petrify classes high adult the
    inheiritance hierarchy be
    avoided;

  • and on.



but there tools component sojourn opaque. essentially among components same vigilant promulgate any other. example, let's contend an vigilant models bullet diversion implemented terms components:




  • a bit geometry visual
    representation

  • a position world

  • a volume used collision with
    other objects

  • other things



at news geometry know the position universe method arrangement correctly, nonetheless does position among the family components object? during transform time, does collision volume object's position universe method exam the intersection objects?



i speculation doubt boiled down this: okay, have objects stoical array components any exercise bit functionality. best proceed work during runtime?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?