Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: karim on February 24, 2014, 11:36:47 AM

Title: Faux Gravity?
Post by: karim on February 24, 2014, 11:36:47 AM
Hi all,

Is it possible to achieve something like Tail Drift Gravity  http://unity3d.com/contest/flash-in-a-flash/

Without much coding?

Best,
Karim
Title: Re: Faux Gravity?
Post by: jeanfabre on February 24, 2014, 01:10:59 PM
hi,

"Without much coding" yes, "Without much effort", no :)

 Basically, you need to apply a gravity force that is always pointing in the opposite direction of the trail.

basically, I would define the path using a real spline that would be used to extrude the trail mesh as well as be used to control the movement.

here I think the plane is not moved by itself but rather using "u" of the spline, so you control a moving point on the spline itself, then the plane follow that point taking in consideration the gravity ( itself towards the spine point it currently follows).

 Not overly complex, but definitly not easy neither!

some post to read and study carefully:

http://hutonggames.com/playmakerforum/index.php?topic=5065.msg25085;topicseen#new

http://hutonggames.com/playmakerforum/index.php?topic=5669.0


Bye,

 Jean
Title: Re: Faux Gravity?
Post by: karim on March 01, 2014, 03:55:46 AM
Brilliant, as always.

Thanks Jean!