Game Development Community

Modify scale by set amount.

by deleteme · in Torque Game Engine · 01/30/2006 (10:41 pm) · 1 replies

Hey, I was just wondering how I could increase the z scale of an object in script when you collide with it.

I have the OnCollision function working fine, its jut making the scale increase.

About the author

Recent Threads

  • FxShapeReplicator

  • #1
    01/31/2006 (7:54 am)
    Use the .setScale(Point3F) function in script. Passing it something like "1 1 2" should keep it at 100% size in x and y while making 200% in z.

    %obj.setScale("1 1 2");