Game Development Community

How can i remove a shape after 3 second?

by Mehdips3 · in Technical Issues · 10/28/2008 (11:42 am) · 1 replies

Hi

how can i remove softly a StaticShape after 3 second or higher ?


for example:

time= 0 (s) ====> position = 0 0 0 (x y z)

time= 10 (s) ====> position = 10 10 0 (x y z)

#1
10/28/2008 (12:02 pm)
The following will delete the shape after three seconds:
%myShape.schedule(3000, "delete");

the following will set the shape's position and orientation after ten seconds:
%myShape.schedule(10000, "setTransform", "10 10 0 0 0 1 0");

the "10 10 0" are the position, the "0 0 1 0" are the orientation.