Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 22 in printed book and digital formats -- plus a one-year subscription (beginning with 23.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 23.4

COLUMN

Xojo Tennis, Part 3

Playing tennis with Xojo and MBS

Issue: 23.4 (July/August 2025)
Author: Stefanie Juchmes-Simonis
Author Bio: Stefanie studied computer science at the University of Bonn. She came into contact with Xojo due to the work of her brother-in-law and got a junior developer position in early 2019 at Monkeybread Software.
Article Description: No description available.
Article Length (in bytes): 15,637
Starting Page Number: 63
Article Number: 23407
Resource File(s):

Download Icon project23407.zip Updated: 2025-06-30 14:16:29

Related Link(s): None

Excerpt of article text...

In the previous part, we brought movement into our game. Today we want to control these movements with Phidgets instead of the keyboard. But before we start, I would like to show you how to implement the improvements suggested in the last part. We start with the random start position of the ball. To do this, we first go to the RestartGame method. At the moment, we reset the position of the ball to 0/0/0. Now, we no longer want the ball to be shot from there, but from any y value. Y therefore becomes a variable here. It now looks like this:

...

Ball.Position = New SCNVector3MBS(0.0, PosY, 0.0)

...

...End of Excerpt. Please purchase the magazine to read the full article.