Raydium 3D Game Engine https://memak.raydium.org/ |
|
How to delete it? https://memak.raydium.org/viewtopic.php?f=8&t=916 |
Page 1 of 1 |
Author: | Farabi [ Wed Nov 26, 2008 6:11 am ] |
Post subject: | How to delete it? |
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); |
Author: | ouille [ Wed Nov 26, 2008 10:37 am ] |
Post subject: | Re: How to delete it? |
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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |