Hey
I’ll be straightforward.
public class PlayerCarControl extends VehicleControl {
void someCustomMethod {
if (this.spatial == null)
system.out.print ("Can you help me access my Spatial ?")
else
this.spatial.rotate (pi,0,pi);
}
}
And in main:
carNode.addControl(PlayerCarControl );
.
.
.
Output: Can you help me access my Spatial ?