Game Development Community

Increasing speed of a class

by Christopher Ellis · in Torque Game Builder · 03/29/2009 (2:21 am) · 1 replies

I have a group of objects in the same class on screen and I want to increase all of their (currently random) velocities by the same factor (increase them by 1.5 times)

I feel like this is something pretty simple and I'm just having a no sleep moment again. Thanks for your help.

#1
04/04/2009 (11:24 am)
I'd put them all in a SimSet to keep track of them. Then when you want to change their velocities, loop through all objects in the SimSet, get current velocity, multiply it, and set new velocity.

I'm not sure if that answers your question... perhaps I'm missing something?