Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Thu Mar 28, 2024 6:29 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to delete it?
PostPosted: Wed Nov 26, 2008 6:11 am 
Offline

Joined: Sat Nov 22, 2008 6:33 am
Posts: 68
How to delete object created with this code?

Code:
   int a;
    char name[RAYDIUM_MAX_NAME_LEN];
    a=raydium_ode_object_find("GLOBAL");
    raydium_ode_name_auto("box",name);
    raydium_ode_object_box_add(name,a,0.1,RAYDIUM_ODE_AUTODETECT,0,0,RAYDIUM_ODE_STANDARD,0,"crate.tri");
     raydium_ode_element_move_name_3f(name,raydium_random_neg_pos_1(),raydium_random_neg_pos_1(),2);
   


Top
 Profile  
 
 Post subject: Re: How to delete it?
PostPosted: Wed Nov 26, 2008 10:37 am 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

All raydium documentation and API reference is here:

You probably need to have a deeper look to it if you want to build some new raydium applications.

Quote:
45.183 signed char raydium_ode_element_delete (int e, signed char deletejoints):
Will obviously delete element e. Deletion may me queued for some reason,
for a very short time (current collide loop). For now, you must set
deletejoints to 1 (true), since joints without 2 linked elements
are invalid.
Linked rocket engines will be deleted, too.

45.184 signed char raydium_ode_element_delete_name (char *name, signed char deletejoints):
Same as above, but using element's name.


Have a look to other raydium example, there is quite one example for each part of raydium.

Have a nice day.
Ouille


Using the same name as for creation:
raydium_ode_element_delete_name(name,1); will do the trick.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group