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

breadboard logic simulator #16

Open
enemali opened this issue Aug 14, 2019 · 4 comments
Open

breadboard logic simulator #16

enemali opened this issue Aug 14, 2019 · 4 comments

Comments

@enemali
Copy link

enemali commented Aug 14, 2019

Can this be used in a breadboard or circuit logic simulator as wires placing in 2d game?

@banshee-gzzz
Copy link
Contributor

It is generic Bezier spline implementation, it can be used for anything related to Bezier spline
Could you please give me more details or a reference to what you are trying to achieve?

@enemali
Copy link
Author

enemali commented Aug 14, 2019

thank you for trying to help, what i want is to simulate a simple circuit for kids where the user drag and drop a wire at runtime from battery to circuit board as shown below either in 2d or 3d mode.
Any assistance on how to do this?

circuit

circuit2

@banshee-gzzz
Copy link
Contributor

I think it can be done like this:

  1. Use 2 points spline like shown on the picture. Point0 will be attached to a battery and point1 will be draggable. Once a player clicks/taps on point1 and drags it- change its position to follow the mouse/finger. Also, change point0's control2 position a little bit to simulate tension depending on the Point1 current position.
  2. To visualize wire use this component-http://www.bansheegz.com/BGCurve/Cc/BGCcVisualizationLineRenderer/ with opaque material

Support_14_08_2019

@enemali
Copy link
Author

enemali commented Aug 14, 2019

i will give it a try , thanks for taking your time to explain 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

2 participants