Skip to main content

All Questions

Tagged with
0 votes
0 answers
79 views

How to efficiently path many objects to a moving point?

Working in 3D in the Godot engine, I have an object that moves through space and, like a tornado, is intended to pick up objects in its path. What I have right now is janky, effectively re-baking the ...
Evan C's user avatar
  • 1
1 vote
1 answer
133 views

Getting coordinates within a bezier space

I have created an object that is comprised of two bezier curves (constructed of an identical finite segments equal to a variable named resolution). The two curves ...
Magikarp's user avatar
0 votes
2 answers
302 views

Why do computer graphics applications use piecewise polynomial curves of degree 3 rather than curves of higher-order, say degree 100?

just wondering why is that? can't get my head around it. wouldn't the use of degree 100 be better? I'm really new to this stuff.
zeroflux's user avatar
1 vote
2 answers
3k views

How to convert Unreal Engine 4 spline to a bezier curve?

I have read the source code of USplineComponent and found that for a curve in Unreal, the result is calculated via ...
zwcloud's user avatar
  • 163
8 votes
1 answer
377 views

How to move a portion of bezier/spline curve along its complete bezier/spline curve?

Based on the image below, I have a curve (orange) which is a bezier sub-curve of an original curve (longer black curve). The original curve consists of a number of cubic bezier curves joined together. ...
NotEveryDay's user avatar
0 votes
2 answers
159 views

How do I determine the slope of a curve?

I am making a 2D game where the character rides on the curve of a graph. I need to find out whether the player is going uphill or downhill and calculate speed accordingly. The problem is that I am ...
DataPools's user avatar
0 votes
1 answer
597 views

Create Bezier curves with random heights that connect

In unity, I am trying to create several curved platforms that connect using bezier curves, however I am having issues. I understand the basics of genertating a bezier curve and I have something ...
Charles Cox's user avatar
2 votes
2 answers
1k views

How do you solve where the camera should be on a bezier curve depending on player? (camera on rail)

I am writing a game where I require a camera on rail; That is, the camera's path is fixed and follows a bezier curve. However, I cannot find any resources online for solving the closest point on a ...
oxysoft's user avatar
  • 713
10 votes
5 answers
9k views

Points evenly spaced along a bezier curve

I have looked around for a while and I can't find a solution to this problem. Let's say I have a cubic bezier curve (defined by 4 points) and I want to get a set of points that are spaced evenly along ...
Foaly's user avatar
  • 241
0 votes
1 answer
2k views

Rotating object along bezier curve: not rotating enough?

I tried to follow the instructions from the threads on the forum (Cocos2d rotating sprite while moving with CCBezierBy) with Unity, in order to rotate my object as it moves along a bezier curve. But ...
Paul's user avatar
  • 679
1 vote
2 answers
3k 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 ...
Paul's user avatar
  • 679
5 votes
1 answer
4k 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 ...
Vexille's user avatar
  • 347
2 votes
3 answers
2k 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. ...
Publius's user avatar
  • 1,493
2 votes
2 answers
2k 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?
vgonisanz's user avatar
  • 232
1 vote
1 answer
2k 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
lacas's user avatar
  • 346

15 30 50 per page