Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action Source/Target for passing actions across a bridge #569

Open
thestonefox opened this issue May 23, 2022 · 0 comments
Open

Action Source/Target for passing actions across a bridge #569

thestonefox opened this issue May 23, 2022 · 0 comments

Comments

@thestonefox
Copy link
Member

from Discord:

I think interactors having a list of ActionSources is better than an ActionSource knowing about its interactor

this actiontarget/source concept is more about

i know both these sources can control this target but only under certain circumstances
i could have only 1 source control it
both or neither
so in the use case of interactables
its grabbing
and right now we have 4 (5 with custom whatever that means) states
first touched/touched/first grabbed/grabbed
so..
* the first controller that touches me gets the action link
* any controller that touches me gets an action link
* the first controller that grabs me gets the action link
* any controller that grabs me gets an action link
so a gun would be like first grab
the primary grabbing controller is my firing controller
this actiontarget/source concept is more about

i know both these sources can control this target but only under certain circumstances
i could have only 1 source control it
both or neither
so in the use case of interactables
its grabbing
and right now we have 4 (5 with custom whatever that means) states
first touched/touched/first grabbed/grabbed
so..
* the first controller that touches me gets the action link
* any controller that touches me gets an action link
* the first controller that grabs me gets the action link
* any controller that grabs me gets an action link
so a gun would be like first grab
the primary grabbing controller is my firing controller
this actiontarget/source concept is more about

i know both these sources can control this target but only under certain circumstances
i could have only 1 source control it
both or neither
so in the use case of interactables
its grabbing
and right now we have 4 (5 with custom whatever that means) states
first touched/touched/first grabbed/grabbed
so..
* the first controller that touches me gets the action link
* any controller that touches me gets an action link
* the first controller that grabs me gets the action link
* any controller that grabs me gets an action link
so a gun would be like first grab
the primary grabbing controller is my firing controller
this actiontarget/source concept is more about

i know both these sources can control this target but only under certain circumstances
i could have only 1 source control it
both or neither
so in the use case of interactables
its grabbing
and right now we have 4 (5 with custom whatever that means) states
first touched/touched/first grabbed/grabbed
so..
* the first controller that touches me gets the action link
* any controller that touches me gets an action link
* the first controller that grabs me gets the action link
* any controller that grabs me gets an action link
so a gun would be like first grab
the primary grabbing controller is my firing controller
i think i have a way of making it totally generic and even can be part of zinnia
i need to let it swill around in my head a bit first
this way you can keep using the ActionPublisher/ActionReceiver for a super simple way

but if you want to use ActionSource and ActionTarget components separately then you can
well i dunno how easy it is it to make it part of zinnia yet....
it'll all become clearer when i start on it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant