Game Development Community

MiniTutorials-SimpleBoatPhysics

by Nir Ziso · in Torque Game Builder · 07/06/2006 (5:27 am) · 6 replies

I can't see my boat move I open the zip file and put it in the recourses folder but the ship don't move
Why?

#1
07/06/2006 (11:06 am)
Did you set the boat to the right datablock?
#2
07/07/2006 (4:51 am)
Can you tell me how to do it
#3
07/07/2006 (8:42 am)
Check out step 5 of the simple car tut.
#4
07/07/2006 (2:55 pm)
Yes, thank you Ben!

I'm sorry for the confusion, with the current version of TGB you have to select PhysBoatDatablock (I think thats what I called it..) from the dropdown list at the top of the Create tab *then* drag the boat image into the level. Conversely, if your object is already in the level, you can set it's datablock by selecting it, switching over to the Edit tab and scrolling down to the Scripting rollout and selecting the desired datablock from the dropdown list there.

@Ben - At the time when you first edited that tutorial they weren't supposed to be out yet (oops). Those tutorials were written for the next version of TGB where you can define an ImageMap with a defaultConfig so in the next version the imagemap will just drop in and have the datablock automatically assigned. If you look at the boat, car, or tank resourceDatabase.cs files, you can see how defaultConfig will be used. We meant to put some sort of disclaimer or additional message in the actual template itself about that (which is why we haven't added further instructions to the other MiniTutorials), but everyone's so busy! Thank you for your help.
#5
07/07/2006 (6:42 pm)
Ahhhh, that explains a lot. With the high quality of the code in the tutorials I was pretty surprised that they pretty much didn't work at all as written in the instructions. Now it all makes sense!
#6
07/07/2006 (10:51 pm)
Thaks alot for your help