Changing TOK objects once created

Blitz3D Forums/Blitz3D Userlibs/Changing TOK objects once created

Shifty Geezer(Posted 2005) [#1]
I have need to change a TOK object's properties once created, such as changing the dimensions of a cube. This is when the TOK simulator is 'paused'.

Currently I destroy the TOK object and create another using my existing object create and delete functions, but I get some erratic bugs occur as a result, blitzcc.exe crashing out in seemingly random places.

Anyone got any tips how best to edit objects once created?

Cheers,


Sweenie(Posted 2005) [#2]
Try just removing the geometry and after adding a new one try calling TOKRB_UpdateBoundingInfo


Shifty Geezer(Posted 2005) [#3]
Cheers. I'll give that a go.