|
Re: Pointers and Tank Drive?
Now that Bot is a pointer, you need to use the arrow operator to access the TankDrive method. You also need to remove the & from stickLeft and stickRight that was turning them into pointers. TankDrive expects two pointer inputs and since stickLeft and stickRight are already pointers, you can pass them in directly. Try this out:
Bot->TankDrive(stickLeft, stickRight);
Last edited by Dave Scheck : 18-12-2008 at 18:48.
|