Path Movement Behavior

New releases and general discussions.

Post » Mon Feb 15, 2010 8:33 am

[quote="newt":1j9qij3k]Actually that looks pretty much dead on. I think what your noticing is what you would call an optical illusion.[/quote:1j9qij3k]

That was my first thought too. But after a while of staring at it my eyes went screwy and I couldn't tell what was going on any more :P
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Feb 15, 2010 4:29 pm

Rojo,
Maybe some sort of slight ease in/ease out for the curves to compensate.
If the rate of ease in/ease out was linked to the severity of the curve, I think it would work quite well.

Krush.
B
2
S
2
G
3
Posts: 406
Reputation: 2,062

Post » Tue Feb 16, 2010 8:09 pm

[quote="R0J0hound":mckux3xz]Objects move along a smoothed path, but their speed varies[/quote:mckux3xz]
Bezier curves are used for graphics, but they're not so good for motion as their first derivative is not constant.

You'd want a spline with a constant first derivative respect to the parameter (time). There are a jillion different kinds of splines out there. I was looking for a constant first derivative spline to suggest, then I remembered that ease-in and ease-out would be nice, and such a spline would prevent that.

So my suggestion is to reparametrize the curve, and in the process you might be able to add ease in/out. This document explains how.
[url:mckux3xz]http://www.geometrictools.com/Documentation/MovingAlongCurveSpecifiedSpeed.pdf[/url:mckux3xz]


It's probably difficult.
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Sun Feb 21, 2010 4:07 am

NEW VERSION OF PATH MOVEMENT 1.3
Download on cover page.

Major Additions:
+Smooth curve option
+on endpoint triggered conditions.
B
79
S
24
G
52
Posts: 4,724
Reputation: 39,711

Post » Sun Feb 21, 2010 6:01 am

Smooth man, nice and smooth.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Sun Feb 21, 2010 6:04 am

It just made a great plugin AMAZING! WOW
B
28
S
8
G
8
Posts: 530
Reputation: 7,154

Post » Sun Feb 21, 2010 10:13 am

Just downloaded the plugin and it works really good, but I was wondering is there anyway to make more then one path for an object? I want to use this in create a curved path for a bird that flies from tree to tree and since the trees are going to placed differently throughout a level, I'm going to need a different path regularly.
B
2
S
2
G
3
Posts: 143
Reputation: 1,536

Post » Sun Feb 21, 2010 11:14 am

There is a way to save and load paths.

@R0J0hound: This plugin is immensely useful! Though I can think of a few features that would make it even more useful, if you are willing to bash your head against the keyboard some more. :)

- acceleration/deceleration at waypoints (based on sharpness of the corner, basically the angle difference, if it is straight - 180 degrees - don't decelerate at all, etc.)
- a way to tell when a waypoint has been reached (so we can stop, continue manually or play a specific animation)
Actually, is it possible to retrieve the next waypoint? Were that possible, the above could be done manually.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sun Feb 21, 2010 12:49 pm

[quote="KrushBrother":2irdnwae]Maybe some sort of slight ease in/ease out for the curves to compensate.
If the rate of ease in/ease out was linked to the severity of the curve, I think it would work quite well.[/quote:2irdnwae]

[quote="Mipey":2irdnwae]- acceleration/deceleration at waypoints (based on sharpness of the corner, basically the angle difference, if it is straight - 180 degrees - don't decelerate at all, etc.)[/quote:2irdnwae]

Spot the difference!
:lol: :lol: :lol:

Krush
B
2
S
2
G
3
Posts: 406
Reputation: 2,062

Post » Sun Feb 21, 2010 1:53 pm

Oh. :roll:
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

PreviousNext

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest