The Daily Click ::. Forums ::. Klik Coding Help ::. 360 Engine? (Crap Links in Search)
 

Post Reply  Post Oekaki 
 

Posted By Message

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
31st March, 2006 at 00:15:14 -

Hey all, I'm looking for help on a 360 engine that resembles the "Race Car Movement" that’s built into TGF/MMF, but my biggest issue at this point is getting collisions between the object and the actual wall, correctly. I need it to be able to collide with walls of various and random angles, no straight lines, and no right angles limitations. I have the basic 360 movement down, but I cant for what ever reason, seem to get a smooth collision where you can hit slightly, and not bounce, but if you hit hard enough, you bounce away a short distance.

Anyone think they'd be able to help? I'll upload what I have so far (working 360 movement) if anyone wants to check it out, fully commented. Thanks.

 
http://www.facebook.com/truediamondgame

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
31st March, 2006 at 01:01:35 -

Snerlin had pack of tutorials that included a 360 one, you might check with him.

 
Craps, I'm an old man!

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
31st March, 2006 at 01:12:58 -

360 movement would be newX = X + cos(angle) * speed ; newY = Y + sin(angle) * speed

where left and right rotate the angle forward increases speed and back decreases speed. and the speed would be in pixels.(speed=1 move 1 pixel in the direction of the angle, speed=2 move 2 pixel in the direction of the angle, and so on)
ive never implemented it in tgf or mmf so i dont know if you can just use that (i dont know what they use, radians or angles). i use that in my games programmed in Basic.

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
31st March, 2006 at 01:17:33 -

um...does that ammuse you phizzy?

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
31st March, 2006 at 01:20:26 -

oh i see. yes. lol sorry. i did mean degrees

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
31st March, 2006 at 02:01:44 -

nevermind. i was disproving you but i read your comment wrong.

but just so YOU know. you can calculate it either way. you just convert back to whatever your preference is with the
radians = degrees * (180/pi)

Image Edited by the Author.

 
n/a

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
31st March, 2006 at 08:37:38 -

http://www.jracademy.com/~mbasteaf/CyberPhysics/studies/reflection.htm

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
31st March, 2006 at 12:55:53 -

I asked the exact same question a couple of months ago, and noone was willing to help. Bastard TDC:ers.

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
31st March, 2006 at 13:26:40 -

I already know how to do the 360 movement itself, as I have already said in my post (read past the title of my post!) I need to know how to do collisions not the actual 360 movement. I'm talking about a real collision, where the fast you hit the wall, the more force you get tossed back, and the hit that resembles reflection, in the since that when you hit the wall going north east, you don’t suddenly go south west, you go north west, unlike TGF/MMF's bounce movement.

Edit: I'll upload what I have so far, once I'm back on my computer (posting from school.)

Image Edited by the Author.

 
http://www.facebook.com/truediamondgame

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
31st March, 2006 at 15:57:46 -

That is assuming you want to give an angle value to every obstacle. Or you can use raw data stored in an array (endpoints of wall), some stuff with tangent*-1, and run a fastloop to check your current position with wall data.

Axel: There you go, I guess?

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
31st March, 2006 at 16:42:47 -

kiss me im irish =P (but not really so dont)

 
n/a

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
31st March, 2006 at 18:45:19 -

What?

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
31st March, 2006 at 23:49:51 -

Well, yeah, but I'm not in trig, I'm in Algebra I. I'm allowed to make mistakes.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
1st April, 2006 at 00:09:46 -

phizzy your talking about inverse tangent right? not tangent raised to the -1 power. some people might get confused if they arent accustomed to trig.

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
1st April, 2006 at 00:18:23 -

exaclty. inverse tan is arctan. or tan^-1. just making sure so other people dont get confused.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click