GithubHelp home page GithubHelp logo

Spawning Targets about fpsci HOT 4 CLOSED

nvlabs avatar nvlabs commented on July 28, 2024
Spawning Targets

from fpsci.

Comments (4)

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

Currently App.cpp has multiple methods for spawning targets:

Of these, only the last 2 are actually called when playMode = true. We should consider uniting/documenting/removing these to help make things clearer, but I'm not sure which contains our desired approach.

from fpsci.

jspjutNV avatar jspjutNV commented on July 28, 2024

Overview of these methods and where they came from.

  • spawnTarget(): the core function to spawn a target. Was designed when there was 1 target type and was intended to be called everywhere when we wanted to spawn a target.
  • spawnRandomTarget(): the second function, hooked up to the developer UI which demonstrates how to attach a motion path to a new target. Intended for developer use only.
  • spawnFlyingTarget(): a fork of spawnTarget() renamed to represent the FlyingTarget object that evolved from our old single target type. I believe this is the one currently used in experiments.
  • spawnJumpingTarget(): similar to the FlyingTarget one, but for the JumpingTarget type that was added later in development.
  • spawnParameterizedRandomTarget(): I started writing this to provide an interface that matched the experiment configuration that would create a motion path the same way as in spawnRandomTarget() but matching the types of motion decisions that are found inside FlyingTarget now. This is not currently used, but if someone decides to move to the pre-computed motion path model, we could replace this function with the correct code.

I don't think anything needs to be done with these right now, but maybe it would be good to open another bug to fix spawnParameterizedRandomTarget()

from fpsci.

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

@jspjutNV take a look at issue #13 for more specific details on spawnParametrizedRandomTarget(). I agree that we can probably leave multiple target spawning mechanisms available in code even if they are not called. These functions should be well-documented in source/readme's to make this more obvious to the developer.

from fpsci.

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

Since there seems to be no strong preference for removing these here, I am going to close this issue. We can continue more specific discussions in issues like #25, #12, and #13.

from fpsci.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.