Game Development Community

Problem with sailing

by Roi Hojgaard · in Torque Game Engine · 03/14/2004 (4:02 am) · 8 replies

Ok, I've got everything up and running now. Works great!

However, when trying to add a boat/hovercraft, I ran into some problems. I followed this tutorial: "Adding Watercraft to TGE" by Kenneth 'CERDIP' Finney "http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2299".

I can manage to get the boat into the scenary, but it refuses to mount. I have the very latest HEAD version.

Maybe there's some version conflict, since that tutorial is like two years old?

Any input much appreciated.

#1
03/14/2004 (4:24 am)
Roi

In the player.cs you must change this line in
function Armor::onCollision(%this,%obj,%col)

if ((%this.className $= WheeledVehicleData || %this.className $= WaterCraftData) && %obj.mountVehicle && %obj.getState() $= "Move" && %col.mountable)
#2
03/14/2004 (4:19 pm)
That is also what the tutorial said, so I have done that already, without luck.

But now that I look over the tutorial again and compare it with my fps, I see that my hover is not located in the "shapes" category, only in the static shapes.

Back to debugging.

it was the mRidig.state.bla that I'd neglected to remove before compiling. It works fine now. :)
#3
01/01/2012 (7:43 am)
From and including: Sunday, March 14, 2004
To and including: Sunday, January 1, 2012

It is 2850 days from the start date to the end date, end date included

Or 7 years, 9 months, 19 days including the end date
Alternative time units
2850 days can be converted to one of these units:

246,240,000 seconds
4,104,000 minutes
68,400 hours
407 weeks (rounded down)

Happy New Year!
#4
01/01/2012 (9:20 am)
A necro for spam... I hope that's not an indicator of the coming year!
#5
01/01/2012 (9:21 am)
* le duplicate *
#6
01/01/2012 (4:30 pm)
Spammer begone!
#7
01/08/2012 (3:52 am)
I was confused by Steve's post until I read the rest ;P.
#8
05/05/2012 (10:50 pm)
Nice to see my old threads are still alive and well :)