Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Different surfaces?
04-22-2009, 12:24 AM,
#25
 
slowDan Wrote:I decided to do something else in the meantime. That was adding a rear view button. It started off simple then got a little complicated because the car was catching up with the chase camera. I managed to disable that though and set up some sensible defaults, which proved to be a good distraction. Smile

Cool, this is a nice feature! You did a good job. I made a few tweaks:
* I set analog=1 in the data/skins/simple/menus/CarControls file; this is kind of an undocumented feature but if you set analog=1 then by default VDrift will set buttons that you assign here to be "held", which makes sense for this control because you have to hold it down
* in carinput.h I moved the REAR_VIEW control after GAME_ONLY_INPUTS_START_HERE because it doesn't affect the dynamics of the car so doesn't need to be recorded in replays or (eventually) sent during multiplay
* in track.cpp I made the default type set when the surface_type variable is instantiated above instead of in the if/else statement, for no good reason except that it matches what was done for isashadow and clamptexture
* in car.cpp I rotated offset you were applying so it applies correctly as the car rotates -- you might want to check and make sure that it's still the offset you expected since before it was in the wrong frame
Reply


Messages In This Thread
Different surfaces? - by slowDan - 04-02-2009, 05:25 PM
Re: Different surfaces? - by slowDan - 04-05-2009, 12:11 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-05-2009, 05:04 PM
[No subject] - by slowDan - 04-07-2009, 02:38 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-07-2009, 07:56 PM
[No subject] - by alex25 - 04-07-2009, 09:39 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-08-2009, 10:10 AM
[No subject] - by alex25 - 04-08-2009, 10:28 AM
[No subject] - by FFuser - 04-09-2009, 11:43 AM
[No subject] - by slowDan - 04-09-2009, 12:14 PM
[No subject] - by alex25 - 04-09-2009, 12:49 PM
[No subject] - by FFuser - 04-09-2009, 06:35 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-09-2009, 10:34 PM
[No subject] - by FFuser - 04-10-2009, 08:47 AM
[No subject] - by alex25 - 04-10-2009, 04:41 PM
[No subject] - by slowDan - 04-11-2009, 03:40 PM
[No subject] - by slowDan - 04-13-2009, 01:23 PM
[No subject] - by alex25 - 04-13-2009, 05:33 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-13-2009, 10:23 PM
[No subject] - by slowDan - 04-14-2009, 03:17 AM
[No subject] - by joevenzon_phpbb2_import3 - 04-19-2009, 06:15 PM
[No subject] - by slowDan - 04-21-2009, 03:22 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-21-2009, 11:56 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-22-2009, 12:24 AM
[No subject] - by slowDan - 04-22-2009, 01:24 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-22-2009, 08:02 PM
[No subject] - by slowDan - 05-16-2009, 04:48 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-17-2009, 11:37 AM
[No subject] - by alex25 - 05-17-2009, 12:59 PM
[No subject] - by joevenzon_phpbb2_import3 - 05-18-2009, 10:16 AM
[No subject] - by slowDan - 05-31-2009, 01:20 PM
[No subject] - by joevenzon_phpbb2_import3 - 05-31-2009, 02:25 PM
[No subject] - by alex25 - 05-31-2009, 05:46 PM
[No subject] - by alex25 - 05-31-2009, 07:44 PM
[No subject] - by slowDan - 06-01-2009, 12:53 PM
[No subject] - by joevenzon_phpbb2_import3 - 06-01-2009, 06:50 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)