public bool IsMember(CollisionBody part) { IntPtr pFunc = PropertyFunc.ExGetFunc(base.m_pItem, 3); PropertyFunc.ExSetFuncArgObject(pFunc, 0, part.GetPtr()); bool flag = PropertyFunc.ExFuncInvokeBool(pFunc) != 0; PropertyFunc.ExFuncRelease(pFunc); return(flag); }
public void ActivateAll(bool bActive) { this.Active = bActive; foreach (ShapeBody body in this.Parts) { body.Active = bActive; CollisionBody body2 = body as CollisionBody; if (body2 != null) { foreach (TransportSurface surface in body2.TransportSurfaces) { surface.Active = true; } } } }