I'm trying to use "del_animation" like this:
I'm expecting the animation to be deleted and the mesh groups to revert to their initial state but that's not what happens.
The animation is scaling. The chute scales up when it's supposed to but doesn't scale back down upon ground contact even though the animation is deleted.
From the docs:
Code:
function clbk_poststep(simt,simdt,mjd)
if vi:get_groundcontact() == true then
vi:del_animation(anim_Chute)
end
end
The animation is scaling. The chute scales up when it's supposed to but doesn't scale back down upon ground contact even though the animation is deleted.
From the docs:
Any help would be appreciated.Before the animation is deleted, the mesh groups associated with the animation are reset to their default (initial) positions.