Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: _player1537 on March 12, 2010, 08:49:16 pm

Title: Physics help
Post by: _player1537 on March 12, 2010, 08:49:16 pm
I am wanting to make a program that will simulate physics, but the ones I found I could not understand the source code.  Can anyone help me.  I want to make something like the sonic physics program in the axe section, so that it has friction and jumping/gravity.
Title: Re: Physics help
Post by: ztrumpet on March 12, 2010, 09:08:24 pm
I think this is the program you're referring to, right?
http://ourl.ca/4250

Builderboy, I'm also curious.  Could you explain what each little section does so it makes sense?
Builderboy is also the programmer of Peggle, another awesome physics game.  It's in Basic, but I'd still recommend looking at it. :)
Peggle: http://tibasicdev.wikidot.com/archives:peggle

Builderboy, you're really good at programs like this. :) Do you mind sharing your methods? ;D
Title: Re: Physics help
Post by: _player1537 on March 12, 2010, 09:35:43 pm
I was specifically saying this program http://ourl.ca/4161/76877 (http://ourl.ca/4161/76877) but those programs are good examples too, builderboy could you please tell your secrets?
Title: Re: Physics help
Post by: meishe91 on March 12, 2010, 09:41:11 pm
I'm just going to take a guess and what part of the engine's could be (I have no idea and could be very wrong :P). But it could be something like testing the number of pixels that it is touching/going through/etc. and then just simply applying that to a physics equation (like applying something that calculates gravity). Just a guess :)
Title: Re: Physics help
Post by: ztrumpet on March 12, 2010, 10:21:05 pm
I was specifically saying this program http://ourl.ca/4161/76877 (http://ourl.ca/4161/76877) but those programs are good examples too, builderboy could you please tell your secrets?
Oh, that's right.  I forgot about that one.  Sorry. :)

And the great thing is, is it's still by Builderboy. ;D
Title: Re: Physics help
Post by: DJ Omnimaga on March 12, 2010, 10:35:48 pm
Btw this one runs much faster on calc than it does in the screenshot. I get like 30 frames per second at least.

It's quite buggy, though :(
Title: Re: Physics help
Post by: Builderboy on March 13, 2010, 01:56:10 am
* Builderboy begins work on a physics tutorial *

Since that seems to be my strong suit, writing engines :)
Title: Re: Physics help
Post by: DJ Omnimaga on March 13, 2010, 01:58:03 am
/me wonders if he will make Sonic...
Title: Re: Physics help
Post by: meishe91 on March 13, 2010, 02:07:04 am
*Meishe thanks Builderboy for starting said tutorial* O0
Title: Re: Physics help
Post by: _player1537 on March 13, 2010, 02:27:47 am
*Meishe thanks Builderboy for starting said tutorial* O0
*Player_ thanks Builderboy as well*
Title: Re: Physics help
Post by: ztrumpet on March 13, 2010, 11:18:39 am
*Meishe thanks Builderboy for starting said tutorial* O0
*Player_ thanks Builderboy as well*
*ZTrumpet thanks Builderboy as well and asks that examples from Peggle be included* ;D
Title: Re: Physics help
Post by: _player1537 on March 13, 2010, 12:43:51 pm
*Meishe thanks Builderboy for starting said tutorial* O0
*Player_ thanks Builderboy as well*
*ZTrumpet thanks Builderboy as well and asks that examples from Peggle be included* ;D
*Player_ also asks for examples from Portal X* :)