Don't seem able to set a collision polygon
by James Randall · in Torque Game Builder · 02/21/2006 (10:17 am) · 3 replies
I'm calling this on a scene object:
%object.setCollisionPolyCustom(3, "-1 -1 1 -1 -1 1");
and expecting it to set a triangular collision polygon for the object but it seems to do nothing at all. I've tried different numbers of vertices and vertices all over the shop but it just doesen't seem to make any difference. I always end up with a rectangular collision box.
Am I missing something? Do I need to call something else first?
Any help would be greatly appreciated as I've been bashing my head for a while now (which makes me think I *am* missing something!).
Thanks,
James
%object.setCollisionPolyCustom(3, "-1 -1 1 -1 -1 1");
and expecting it to set a triangular collision polygon for the object but it seems to do nothing at all. I've tried different numbers of vertices and vertices all over the shop but it just doesen't seem to make any difference. I always end up with a rectangular collision box.
Am I missing something? Do I need to call something else first?
Any help would be greatly appreciated as I've been bashing my head for a while now (which makes me think I *am* missing something!).
Thanks,
James
About the author
Torque Owner James Randall
Bonehead!