Data Realms Fan Forums http://45.55.195.193/ |
|
Sine Airburst Problem http://45.55.195.193/viewtopic.php?f=73&t=18898 |
Page 1 of 1 |
Author: | Sam4578 [ Thu Jun 03, 2010 9:00 am ] | |||
Post subject: | Sine Airburst Problem | |||
I've been trying to make a round gib midair after a sine path. but i'm having some trouble with the gibbing and the angle of which it gibs. The files attach are for both the particle A and B. please tell me what I've done wrong. p.s I'm a major newb to this stuff
|
Author: | Daman [ Thu Jun 03, 2010 11:56 am ] |
Post subject: | Re: Sine Airburst Problem |
You seem to be calling variables that don't exist. In B you have two update functions. I'm assuming you know all the physics you need to be handling behind it. Code: self.Vel.Perpendicular.Normalized You're not getting a syntax error from this? or your two update functions? To do what is quoted you should be using Vector:Normalize() but I'm not sure what you'd use to get the perpendicular of a vector, you might be looking for Vector:Cross() or Vector:Dot()? oh, apparently CC has a built in perpendicular function Vector:Perpendicularize() is extant in the wiki. So, you'd want to Normalize() it and then Perpendicularize() it. More vector functions are on the wiki. |
Author: | Sam4578 [ Thu Jun 03, 2010 12:49 pm ] |
Post subject: | Re: Sine Airburst Problem |
Nailed it! thanks for the help! Cheers! |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |