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

Method of simulating the effects of user input on a non-locomotion character controller #3223

Open
amplified1 opened this issue Nov 26, 2024 · 2 comments
Labels
New Feature A new addition, whose complexity hasn't been evaluated yet

Comments

@amplified1
Copy link

Is your feature request related to a problem? Please describe.

Character controllers are the obvious go-to for making physics based NPCs and vehicles, this is even the case for official Resonite content, which utilizes character controllers for vehicles, but using a character controller for a controlled object requires a large amount of redundant code to make the character controller actually move itself. Essentially the only aspect of the character controller flux controlled physics actors can take advantage of is collision detection, reaction to force fields, and gravity, and to create something like a car, you have to do a lot of manual calculations to set and add velocity based on movement, which is confusing, because the character controller has built in functions for movement and jumping, that can simply only be invoked by the "Physical Locomotion" component. Having a way of simply telling a character controller to "walk forward" or "jump" based on the parameters already contained in the component would heavily simplify physics based non player actors.

Describe the solution you'd like

A set of nodes for giving the character controller commands that would normally be given by the Physical Locomotion component, such as node that passes a float3 vector for moving that is automatically multiplied with the "speed" value in the character controller, a node that makes the character controller jump based on its "jump speed" value, etc,

Describe alternatives you've considered

Not really sure what the alternatives could be, of course making redundant flux that doesn't take advantage of the innate functionality of the character controller is an "alternative", but I think this is a reasonable addition for quality of life and efficiency. I feel like even as the physics system is reworked and we get access to proper rigid bodies this would never really stop being useful as an alternative to doing everything manually by hand.

Additional Context

Having not seen the code of the game I don't know what the "physical locomotion" component is precisely responsible for when it comes to making a character controller function as a user locomotion driver, but from what I understand by the placement of the parameters, the ability to jump, walk, and run, are all innate, and are simply controlled by the physical locomotion component.

Requesters

@amplified3d

@amplified1 amplified1 added the New Feature A new addition, whose complexity hasn't been evaluated yet label Nov 26, 2024
@shiftyscales
Copy link
Collaborator

If I am understanding your request correctly, you are effectively wanting a mechanism to puppet / pilot additional character controllers that exist outside of your user using the same native Resonite control scheme?

Is that about right, @amplified1?

@shiftyscales shiftyscales added the needs more information More information is requested about this issue. label Dec 2, 2024
@shiftyscales shiftyscales removed their assignment Dec 2, 2024
@amplified1
Copy link
Author

Yes, that is correct.

@shiftyscales shiftyscales removed the needs more information More information is requested about this issue. label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature A new addition, whose complexity hasn't been evaluated yet
Projects
None yet
Development

No branches or pull requests

2 participants