private void UpdateTransform() { this.m_Rotation = this.m_ObjectRigidBody.transform.rotation; this.m_Bounds.center = this.m_ObjectRigidBody.transform.position; this.m_Bounds.center = this.m_Bounds.center + -this.m_ObjectRigidBody.transform.right * this.m_LocalPos.x; this.m_Bounds.center = this.m_Bounds.center + -this.m_ObjectRigidBody.transform.up * this.m_LocalPos.y; this.m_Bounds.center = this.m_Bounds.center + -this.m_ObjectRigidBody.transform.forward * this.m_LocalPos.z; DebugRender.DrawBounds(this.m_Bounds, this.m_Rotation, Color.red, 0f); }