<node3d>.remove() ... help how does this work?
Hi I'm having trouble of deleting object, here is my code;
Quote:
If I do 'del w.c', it will delete w.c, then I can no longer delete the duck. Does that mean that in my World class, I need to create method to delete the object first and the reference/instance later? e.g when the child (duck) collide with ball and delete child within the World class, I need to do.... self.c.remove() and del self.c later? I thought that Thank you for your time. (all the tabs in my code seem to be missing when I copy-paste here) Kind Regards, Iwan |
Hi,
Please use the [code][/code] tags when posting code. It will preserve your tabs. The Code:
class Parent: |
Hi farshizzo,
Thank you for your explanation about deleting object in vizard, I really appreciate that :D I will use the appropriate tags next time posting codes. Kind Regards, Iwan |
All times are GMT -7. The time now is 12:24 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC