Body set index must be nonnegative and within the sets buffer length.
Posted: Sun Jan 12, 2020 11:23 am
I try to add trigger as Kinemetic. I think kinemetic is movable and not react to gravity so it seem a good idea.
But I can't seem get it by body handle.
here are my code that remove trigger
update after allow it to remove once it not error anymore
'
But I can't seem get it by body handle.
here are my code that remove trigger
Code: Select all
public void RemoveKinemtic(int handle)
{
handleKinematicUnits.Remove(handle);
Simulation.Bodies.Remove(handle);
}
'
Code: Select all
public void RemoveKinemtic(int handle)
{
//System.Threading.Thread.Sleep(10000);
if (handleKinematicUnits.ContainsKey(handle)) {
handleKinematicUnits.Remove(handle);
Simulation.Bodies.Remove(handle);
}
}