View unanswered posts | View active topics It is currently Sat Dec 28, 2024 4:03 pm



Reply to topic  [ 3 posts ] 
 Sine Airburst Problem 
Author Message
User avatar

Joined: Thu May 27, 2010 10:25 am
Posts: 18
Location: Longbeach (not California), Australia
Reply with quote
Post 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


Attachments:
File comment: in a txt file, Particle A
SineShellA.txt [1.07 KiB]
Downloaded 129 times
File comment: in a txt file, Particle B
SineShellB.txt [1.07 KiB]
Downloaded 129 times
Thu Jun 03, 2010 9:00 am
Profile
User avatar

Joined: Fri Jan 26, 2007 3:22 am
Posts: 1451
Reply with quote
Post 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.


Thu Jun 03, 2010 11:56 am
Profile
User avatar

Joined: Thu May 27, 2010 10:25 am
Posts: 18
Location: Longbeach (not California), Australia
Reply with quote
Post Re: Sine Airburst Problem
Nailed it!
thanks for the help!
Cheers!


Thu Jun 03, 2010 12:49 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.121s | 14 Queries | GZIP : Off ]