Tagged Questions
1
vote
2answers
239 views
How to make a gui button follow a path after a touch?
I would like a button in my gui menu to follow a specific path if we selected it, I am wondering how I could do it: if we touch the button, then it can only move on the specific path, it is an arc ...
5
votes
1answer
528 views
How to implement curved movement while tracking the appropriate angle?
I'm currently coding a 2D top-down car game which will be turn-based. And since it's turn-based, the cars won't be controlled directly (i.e. with a simple velocity vector that adjusts its angle when ...
1
vote
0answers
253 views
Bezier curve sample code on touches moved
i am searching for any sample code to draw bezier curve by using touches, if any one have links or sample code please help me. i am developing the game like flight control in that i have to move my ...
2
votes
3answers
301 views
Tessellating to a curve?
I'm creating a game engine, and I'm trying to define a 3D model format I want to use. I haven't come across a format that quite does what I want.
My game engine assumes a shader model 5+ environment. ...
2
votes
2answers
610 views
Implementing a sine using a bezier curve
I'm developing a 2D game using Cocos2d-x.
Is possible to use CCBezierTo to parameterize a sine function?
1
vote
1answer
236 views
How to generate closed curve?
How can I do that? I can generate simple beziers, but how can I generate a closed curve like this:
http://www.youtube.com/watch?feature=endscreen&NR=1&v=hlDYJNEiYvU
6
votes
2answers
165 views
How do you calculate if a line is facing a curve?
Given the 2 points describing a line segment, and the 3 points describing a quadratic bezier curve, how do you calculate if the line is facing towards or away from the curve?
The line has a fixed ...
13
votes
3answers
323 views
How do you calculate the nearest point on 2 curves?
Given the points of a line and a quadratic bezier curve, how do you calculate their nearest point? .... Similarly, given the points of 2 curves, how do you get the nearest point?
8
votes
2answers
286 views
How do you calculate if 2 lines are facing toward or away?
Given the 4 points describing 2 line segments, how do you calculate if line A is towards or away from line B?
The 2 lines have a fixed length, and can be measured as distance from x1/y1 to x2/y2.