Comments (4)
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?
from bgcurve.
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?
from bgcurve.
I think it can be done like this:
- 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.
- To visualize wire use this component-http://www.bansheegz.com/BGCurve/Cc/BGCcVisualizationLineRenderer/ with opaque material
from bgcurve.
i will give it a try , thanks for taking your time to explain it
from bgcurve.
Related Issues (19)
- Adding points dynamically. HOT 1
- Trigger Cursor Movement HOT 7
- point distance HOT 3
- BGCurve line render component osx / ios issue HOT 10
- Large distance between points and delay bug? HOT 2
- Manipulate multiple objects HOT 3
- Point controls coordinates problem HOT 1
- Dragging an object attached to a cursor HOT 5
- Get the interpolated value of a field at any position on the curve HOT 2
- Attached points as parent-child relation HOT 1
- Spawn GameObject along point of curve? HOT 2
- Cursor won't move after spawn 2 or more cursor by script. HOT 3
- Add parameter to Rotate component to control revolution around tangent
- Text is almost invisible in BGCurve Custom and System Fields when using Unity Professional Skin HOT 1
- Controlling path progress within Animation editor. HOT 5
- Incompatibility with Unity 2019.3.13f1+ HOT 4
- How can i convert absent curve to smooth (symmetry bezier) in runtime? HOT 2
- Missing type or namespace errors on build HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bgcurve.